Skip to content

Button

Displays a button or a component that looks like a button.

Installation

npm i @huin-core/react-button

API Reference

Button

PropTypeDescription
disabledbooleanWhen set to true, disables the component, preventing user interaction or triggering of associated actions.
asChildbooleanWhen set to true, renders the component as its child element, inheriting the child's styles and behavior.
variant"default" | "destructive" | "outline" | "secondary" | "ghost" | "link"Defines a different style or appearance of the component, allowing for customization of its look and feel based on specific use cases.
size"default" | "sm" | "lg" | "icon"Determines the size of the component, adjusting its dimensions to fit different design or layout requirements.