Button
Example
Section titled “Example”Import
Section titled “Import”import '@sbddesign/bui-ui/button.js'import { BuiButtonReact as BuiButton } from '@sbddesign/bui-ui/react'<bui-button label="Receive Bitcoin"></bui-button><bui-button label="Send Bitcoin" style-type="outline"></bui-button><BuiButton label="Receive Bitcoin" /><BuiButton label="Send Bitcoin" styleType="outline" />Properties
Section titled “Properties”| Property | Attribute | Type | Required | Reflected | Description |
|---|---|---|---|---|---|
content | content | string | No | No | Content type: “label”, “icon”, “label+icon”, “icon+label” |
styleType | style-type | string | No | No | Button style: “filled”, “outline”, “free” |
size | size | string | No | No | Button size: “default”, “small”, “large” |
disabled | disabled | boolean | No | Yes | Whether the button is disabled |
label | label | string | No | No | Text label for the button |
cluster | cluster | string | No | No | Cluster position: “top”, “bottom”, “left”, “right”, “middle-horizontal”, “middle-vertical” |
wide | wide | boolean | No | Yes | Whether the button should take full width |
Valid Values
Section titled “Valid Values”Content Types
Section titled “Content Types”label- Text onlyicon- Icon onlylabel+icon- Text followed by iconicon+label- Icon followed by text
Style Types
Section titled “Style Types”filled- Solid background buttonoutline- Outlined buttonfree- Minimal styling
default- Standard sizesmall- Compact sizelarge- Larger size
Cluster Positions
Section titled “Cluster Positions”top- Top of a groupbottom- Bottom of a groupleft- Left side of a groupright- Right side of a groupmiddle-horizontal- Middle of horizontal groupmiddle-vertical- Middle of vertical group
Events
Section titled “Events”The component emits a standard click event when clicked (unless disabled).