Skip to content

ButtonProps beta ​

TypeAlias of @v12-engine/client/kit

ts
export type ButtonProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
    variant?: ButtonLook['variant'] | 'face' | 'bare';
    size?: ButtonLook['size'] | FaceLook['size'];
    pressed?: boolean;
    tip?: TipContent;
    hotkey?: string;
};

What a Button is given: the attributes of an HTML button, with its look (variant, size), pressed, a tooltip and a hotkey