Button

The Button component is used to trigger a specific event.

1. Import

KUMUI exports 1 Button-related components:

import { Button } from "@rohitgadekar/kimui";

2. Usage


3. API

3.1 Button

Attribute Type Description Default
children
React.ReactNode
The content inside the button (typically text or icons). -
variant
string
The variant of the button. Available variants: default, outline, ghost, destructive, secondary, link. default
disabled
boolean
Disables the button. When set to true, the button is unclickable. false
isLoading
boolean
Shows a loading spinner inside the button. When set to true, the button will show a loading state. false