import { UiElement } from '../shared/element.js'; import { type ButtonLoadingPosition } from '../../core/button.js'; export type ButtonKind = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger' | 'danger-tertiary' | 'danger-ghost'; /** Same as `ButtonKind` (for code written with `variant`). */ export type ButtonVariant = ButtonKind; /** Heights: sm 32px · md 40px · lg 48px (Carbon touch target) · xl 64px · 2xl 80px (Carbon: the label at the top). */ export type ButtonSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl'; export type { ButtonLoadingPosition } from '../../core/button.js'; /** * Carbon-style button (Carbon `Button`). * * Renders a native `