# ButtonBaseProps (@salmonui/buttons/button)

> The ButtonBaseProps interface of @salmonui/buttons/button.

Canonical: https://salmonui.dev/docs/reference/buttons/button/ButtonBaseProps

```ts
import type { ButtonBaseProps } from '@salmonui/buttons/button';
```

Entry index: https://salmonui.dev/docs/reference/buttons/button (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/buttons/button.md).

## Reference

Kind: interface

```ts
interface ButtonBaseProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'color'> {
    children?: ReactNode;
    variant?: ButtonVariant | undefined;
    tone?: ButtonTone | undefined;
    size?: ButtonSize | undefined;
    iconStart?: ReactNode;
    iconEnd?: ReactNode;
    iconOnly?: boolean | undefined;
    loading?: boolean | undefined;
    loadingLabel?: string | undefined;
    spinner?: ReactNode;
    progress?: number | undefined;
    progressLabel?: ((value: number) => string) | undefined;
    floating?: boolean | ButtonFloatingPosition | undefined;
    floatingScope?: 'viewport' | 'parent' | undefined;
    repeat?: boolean | ButtonRepeatOptions | undefined;
    onRepeat?: ((event: ButtonRepeatEvent) => void) | undefined;
    render?: ((props: ButtonRenderProps) => ReactElement) | undefined;
    ref?: Ref<HTMLButtonElement> | undefined;
}
```

Members (18):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `children?: ReactNode;` | optional |  |
| `variant` | `variant?: ButtonVariant \| undefined;` | optional | Visual weight. Default `'solid'` (or the group's). |
| `tone` | `tone?: ButtonTone \| undefined;` | optional | Color role. Default `'neutral'`; `'primary'` for a `floating` button (or the group's). |
| `size` | `size?: ButtonSize \| undefined;` | optional | Metric set. Default `'md'` (or the group's). |
| `iconStart` | `iconStart?: ReactNode;` | optional | Decorative icon before the label (inline-start; follows `dir`). |
| `iconEnd` | `iconEnd?: ReactNode;` | optional | Decorative icon after the label (inline-end; follows `dir`). |
| `iconOnly` | `iconOnly?: boolean \| undefined;` | optional | Square metrics for a button that shows only an icon; requires `aria-label` or `aria-labelledby`. |
| `loading` | `loading?: boolean \| undefined;` | optional | Shows a spinner, sets `aria-busy` and `aria-disabled` (focus is kept) and ignores activation. |
| `loadingLabel` | `loadingLabel?: string \| undefined;` | optional | Visually hidden text appended to the name while `loading`. Default `"Loading"`. |
| `spinner` | `spinner?: ReactNode;` | optional | Replaces the built-in spinner graphic. |
| `progress` | `progress?: number \| undefined;` | optional | Progress fill from inline-start, 0 to 100. No spinner unless `loading`. |
| `progressLabel` | `progressLabel?: ((value: number) => string) \| undefined;` | optional | Visually hidden progress text appended to the name. Default `` `${value}%` ``. |
| `floating` | `floating?: boolean \| ButtonFloatingPosition \| undefined;` | optional | Floating action button: circular, elevated, positioned by CSS. |
| `floatingScope` | `floatingScope?: 'viewport' \| 'parent' \| undefined;` | optional | `'viewport'` (default, `position: fixed`) or `'parent'` (`position: absolute` in the nearest positioned ancestor). |
| `repeat` | `repeat?: boolean \| ButtonRepeatOptions \| undefined;` | optional | Press-and-hold repeat. |
| `onRepeat` | `onRepeat?: ((event: ButtonRepeatEvent) => void) \| undefined;` | optional | Each repeat while held; the first activation is the native `onClick`. |
| `render` | `render?: ((props: ButtonRenderProps) => ReactElement) \| undefined;` | optional | Renders another element (a link, a router link) with the computed props. |
| `ref` | `ref?: Ref<HTMLButtonElement> \| undefined;` | optional | The `<button>` (or the element `render` returns). |
