Type
Size
Disabled
Loading
npx npix@latest add Button
<>
<Button>
Save
</Button>
</>
type
"primary" | "default" | "danger" | "link" | "ghost"
Type of button
size
"small" | "medium" | "large"
Size of button
disabled
boolean
Whether button is disabled
isLoading
boolean
Whether to show button as loading
children
React.ReactNode
Content of the button
Field | Description | Type |
---|---|---|
type | Type of button | "primary" | "default" | "danger" | "link" | "ghost" |
size | Size of button | "small" | "medium" | "large" |
disabled | Whether button is disabled | boolean |
isLoading | Whether to show button as loading | boolean |
children | Content of the button | React.ReactNode |