ButtonProps
Props for Button.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { ButtonProps } from "@mapcairn/map";
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "aria-busy" | "aria-disabled" | "disabled">
Properties
busy
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
readonly disabled?: boolean;
Disables the action with aria-disabled. The button stays focusable and
clicks do nothing.
icon
readonly icon?: IconComponent;
A leading icon, imported by name from @phosphor-icons/react.
mirrorInRtl
readonly mirrorInRtl?: boolean;
Flips the leading icon when the page reads right to left, for one that points along the reading direction.
variant
readonly variant?: "primary" | "secondary" | "quiet";
primary is the filled accent button, quiet has no fill. Defaults to primary.