Pular para o conteúdo principal

Button

danger

This SDK is a Work In Progress! All features are subject to change.

A button is a clickable element used to trigger actions. It supports properties such as children, variant, onClick, and style configurations.

Button

Usage

Example
import { Button } from "@tiendanube/nube-sdk-jsx";

<Button variant="primary" onClick={() => {}}>
Click here
</Button>;

Properties

PropertyTypeRequiredDescription
childrenstringNoText or content of the button.
disabledbooleanNoWhether the button is disabled.
variant"primary"
"secondary"
"transparent"
"link"
NoButton style variant.
widthSizeNoWidth of the button (e.g., "100%", "200px").
heightSizeNoHeight of the button.
onClickNubeComponentButtonEventHandlerNoFunction called when the button is clicked.
styleStyleSheetNoCustom styles for the button.