(props: ButtonProps)
| 17 | } |
| 18 | |
| 19 | export function Button(props: ButtonProps) { |
| 20 | return ( |
| 21 | <RACButton |
| 22 | {...props} |
| 23 | className="react-aria-Button button-base" |
| 24 | data-variant={props.variant || 'primary'}> |
| 25 | {composeRenderProps(props.children, (children, {isPending}) => ( |
| 26 | <> |
| 27 | {!isPending && children} |
| 28 | {isPending && <ProgressCircle aria-label="Saving..." isIndeterminate />} |
| 29 | </> |
| 30 | ))} |
| 31 | </RACButton> |
| 32 | ); |
| 33 | } |
nothing calls this directly
no test coverage detected