({
as,
onInteraction,
children,
role = "button",
})
| 23 | >; |
| 24 | |
| 25 | const NonNativeButton: FC<NonNativeButtonProps<HTMLElement>> = ({ |
| 26 | as, |
| 27 | onInteraction, |
| 28 | children, |
| 29 | role = "button", |
| 30 | }) => { |
| 31 | const clickableProps = useClickable(onInteraction, role); |
| 32 | const Component = as ?? "div"; |
| 33 | return <Component {...clickableProps}>{children}</Component>; |
| 34 | }; |
| 35 | |
| 36 | describe(useClickable.name, () => { |
| 37 | it("Always defaults to role 'button'", () => { |
nothing calls this directly
no test coverage detected