View as Markdown

API reference: @salmonui/buttons/button

ButtonRenderPropstype

import type { ButtonRenderProps } from '@salmonui/buttons/button';
type ButtonRenderProps = HTMLAttributes<HTMLElement> & {
    ref?: Ref<never> | undefined;
    [dataAttribute: `data-${string}`]: string | number | undefined;
};

Props render receives: class names, data-* hooks, ARIA attributes, handlers, ref and children. Spread all of them onto the returned element. ref is typed to spread onto any element; it receives the rendered element.

ButtonRenderProps members (1, 1 inherited)
NameSignatureDescription
refoptionalinheritedref?: Ref<never>;