Skip to main content

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

cssOptional. Adds a custom style to a button
disabledOptional. Defines whether a button is disabled
iconOptional. Adds an icon into a button
textOptional. Adds a text for a button
titleOptional. Sets a tooltip text with additional info about the control
typeOptional. Sets the type of a button

Button Events

clickFires when a button is clicked