import { HTMLAttributes, ReactElement, ReactNode } from 'react'; import { DataAttributes } from '../utils/data-attributes'; type Variant = 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'appPrimary' | 'appSecondary'; type Width = 'small' | 'medium' | 'large' | 'full'; type Size = 'small' | 'medium' | 'large'; export interface ButtonProps { children: ReactNode; variant?: Variant; color?: string; outline?: boolean; corners?: boolean; disabled?: boolean; block?: boolean; onClick?: () => void; href?: string; size?: Size; width?: Width; ariaLabel?: string; passthroughProps?: HTMLAttributes & DataAttributes; } /** * A good-looking button! * * The rendered element will be a `