Button
The Button component triggers actions, behaviors, or events based on user input.
- On this page
Properties
color
A Dracula UI theme color for the Button.
"animated" | "purpleCyan" | "yellowPink" | "cyanGreen" | "pinkPurple" | "cyan" | "green" | "orange" | "pink" | "purple" | "red" | "yellow" | "white" | "black" | "blackSecondary" | "blackLight"
size
Controls the size of the button based on pre-configured Dracula UI sizes.
"md" | "lg" | "sm" | "xs"
variant
Controls the Button style: `normal` -> Default solid Button with background color. `outline` -> A subtle variation of the Button component with a softer background color that highlights the action text. `ghost` -> A less prominent variation of the Button component that highlights hover interactions.
"normal" | "outline" | "ghost"
disabled
Controls the Button state. Mirrors the HTMLButtonElement `disabled` property.
boolean
as
"input" | "a" | "button"