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.
| Name | Signature | Description |
|---|---|---|
refoptionalinherited | ref?: Ref<never>; |