Skip to content

Action

Button

Triggers an action or event.

import { Button } from '@var-ui/react';

Theme this component via createDesignTheme({ components: { button: … } }). See Customize for the full override API.

Public classes and data attributes from @var-ui/core button().

Name Example Description
class var-ui-button Root / part class name
data-tone neutral Recipe variant / state attribute from @var-ui/core.
data-appearance subtle Recipe variant / state attribute from @var-ui/core.
data-size md Recipe variant / state attribute from @var-ui/core.
data-layout default Recipe variant / state attribute from @var-ui/core.

Apply via mergeProps(recipe(…)) or copy the class / data attributes onto your markup.