Button
A clickable element that triggers an action. Buttons can be used to submit forms, open modals, or navigate to different pages.
Import
import { Button } from "@aeonkit/react";Usage
Solid
The default button style, which has a solid background color.
<Button>Solid</Button>Ghost
Ghost buttons are transparent and have no background color.
<Button variant="ghost">Ghost</Button>Outline
Outline buttons have a transparent background and a border.
<Button variant="outline">Outline</Button>Danger
Danger buttons are red and are used to indicate a destructive action.
<Button variant="danger">Danger</Button>Link
Link buttons are styled to look like a hyperlink.
<Button variant="link">Link</Button>Rounded
Rounded buttons have rounded corners.
<Button rounded>Rounded</Button>Icon Button
Buttons can include an icon.
<Button className="rounded-md"> <LuCheckCircle className="text-slate-50" size={20} /></Button>Props
- color?
-
"primary""secondary""slate""gray""zinc""neutral""stone""red""orange""amber""yellow""lime""green""emerald""teal""cyan""sky""blue""indigo""violet""purple""fuchsia""pink""rose"The button color.
- rounded?
-
booleanWhether the button should be rounded.
Default:
false
- variant?
-
"solid""outline""link""danger""ghost"The button variant.
Default:
solid
- size?
-
"xs""sm""md""lg""xl"The button size.
Default:
md
API Interface: ButtonProps