(props: ToggleButtonProps)
| 16 | } |
| 17 | |
| 18 | export function ToggleButton(props: ToggleButtonProps) { |
| 19 | return ( |
| 20 | <RACToggleButton |
| 21 | {...props} |
| 22 | className="react-aria-ToggleButton button-base" |
| 23 | data-variant={props.variant || 'primary'}> |
| 24 | {composeRenderProps(props.children, children => ( |
| 25 | <span>{children}</span> |
| 26 | ))} |
| 27 | </RACToggleButton> |
| 28 | ); |
| 29 | } |
nothing calls this directly
no test coverage detected