import { cx } from '../internal/cx.js'
import { Spinner } from './Spinner.jsx'
/**
* variant: 'primary' | 'secondary' | 'ghost' | 'danger'
* size: 'sm' (36px) | 'md' (44px, the touch minimum) | 'lg' (52px)
* loading: shows a spinner, disables the button and sets aria-busy
* icon / iconEnd: an element (e.g. a lucide icon) before / after the label
*/
export function Button({
variant = 'primary', size = 'md', loading = false, block = false,
icon, iconEnd, type = 'button', disabled, className, children, ref, ...rest
}) {
return (
)
}
/** A square button with only an icon. `label` is required: it becomes aria-label and the tooltip. */
export function IconButton({
label, variant = 'ghost', size = 'md', type = 'button', className, children, ref, ...rest
}) {
return (
)
}