Usage
import { Button } from "lambda-ui-components";
export default function App() {
return (
<Button variant="solid" color="primary">
Click me
</Button>
);
}Button component triggers an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.
Experiment with all the properties of the Button component in real time.
The text content of the button.
Text to display while the button is in a loading state.
Adds an icon to the button.
Controls the color scheme of the button.
Defines the visual style of the button.
Position of the icon relative to the label.
Controls the size of the button.
Defines the border radius of the button.
If true, the button will take up the full width of its container.
Disables user interaction with the button.
Shows a loading spinner.
Makes the button circular (useful for icons).
import { Button } from "lambda-ui-components";
export default function App() {
return (
<Button variant="solid" color="primary">
Click me
</Button>
);
}Prop | Default | Type |
|---|---|---|
variant | "solid" | "classic" | "solid" | "outline" | "dashed" | "soft" | "subtle" | "text" | "unstyled" |
color | "primary" | "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" |
size | "medium" | "tiny" | "small" | "medium" | "large" |
radius | "small" | "none" | "tiny" | "small" | "medium" | "large" | "full" |
block | false | boolean |
isCircle | false | boolean |
iconPosition | "left" | "left" | "right" |
loading | false | boolean |
icon | undefined | ReactNode |
label | undefined | string |
loadingText | undefined | string |
disabled | false | boolean |