06-components/06-attrs.tsx
Attrs
Example
Official Cake20 View example for attrs.
export const inherit = false;
export type Props = {
label: string;
};
export default (props: Props, attrs: Attrs) => (
<button {...attrs} class={["rounded px-4 py-2", attrs.class]}>
{props.label}
</button>
);