(props: ButtonProps)
| 20 | } |
| 21 | export function Button(props: ButtonProps) { |
| 22 | const styles = createStyles() |
| 23 | |
| 24 | const classes = createMemo(() => { |
| 25 | const variant = props.variant || 'primary' |
| 26 | return clsx( |
| 27 | styles().button.base, |
| 28 | styles().button.variant(variant, props.outline, props.ghost), |
| 29 | props.className, |
| 30 | ) |
| 31 | }) |
| 32 | |
| 33 | return ( |
| 34 | <button data-tsd-control {...props} class={classes()}> |
| 35 | {props.children} |
| 36 | </button> |
| 37 | ) |
| 38 | } |
nothing calls this directly
no test coverage detected