Button API Overview
Initialization
import { Button } from "@svar-ui/react-core";
// minimal configuration for initialization
export default function Example() {
return <Button>Click Me</Button>;
}
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Button Properties
css | Optional. Adds a custom style to a button |
disabled | Optional. Defines whether a button is disabled |
icon | Optional. Adds an icon into a button |
text | Optional. Adds a text for a button |
title | Optional. Sets a tooltip text with additional info about the control |
type | Optional. Sets the type of a button |
Button Events
click | Fires when a button is clicked |