interface Props {
id?: string
ref?: React.MutableRefObject<HTMLInputElement>
className?: string
label?: string
onClick?: (e: SyntheticEvent<HTMLButtonElement>) => void
icon?: Icon
isLoading?: boolean
type?: ButtonType
disabled?: boolean
} type ButtonType = "default" | "hollow" | "borderless",const myButton: Button = <Button icon={"github"} onClick={this.myHandler} label="Press me" />const myButton: Button = (
<Button type={ButtonTypes.hollow} onClick={this.myHandler} label="Press me" />
)Please note "default" is optional (can be omitted):
const myButton: Button = (
<Button disabled={true} type="default" icon={"plus"} onClick={this.myHandler} label="Press me" />
)