# ButtonProps

Props for [`Button`](https://docs.mapcairn.com/api/map/Button.md).

This is an interface exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import type { ButtonProps } from "@mapcairn/map";
 
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "aria-busy" | "aria-disabled" | "disabled">
```

## Properties

### busy

```ts
readonly busy?: boolean;
```

Replaces the leading icon with a loader and sets `aria-busy`. Clicks are
ignored while busy. The visible label stays, so the name is stable.

### disabled

```ts
readonly disabled?: boolean;
```

Disables the action with `aria-disabled`. The button stays focusable and
clicks do nothing.

### icon

```ts
readonly icon?: IconComponent;
```

A leading icon, imported by name from `@phosphor-icons/react`.

### mirrorInRtl

```ts
readonly mirrorInRtl?: boolean;
```

Flips the leading icon when the page reads right to left, for one that points along the reading direction.

### variant

```ts
readonly variant?: "primary" | "secondary" | "quiet";
```

`primary` is the filled accent button, `quiet` has no fill. Defaults to `primary`.

## See also

- [`IconComponent`](https://docs.mapcairn.com/api/map/IconComponent.md)

Source: [packages/map/src/ui/Button/Button.tsx:9](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/ui/Button/Button.tsx#L9)
