Skip to content
Theme:

Ui3nButton

Button component with various styles and capabilities.

Props

NameTypeDefault valueDescription
type"primary" | "icon" | "secondary" | "tertiary" | "outline" | "custom" | undefined"primary"Button type
size"regular" | "small" | "large" | undefined"regular"Button size
squareboolean | undefinedThe unrounded button
blockboolean | undefinedWhether to stretch the button to the full width of the parent block
textColorstring | undefinedButton text color
colorstring | undefinedButton background color
elevationboolean | undefinedAdd a raised effect to the button
iconstring | undefinedThe icon displayed on the button
iconSizestring | number | undefinedButton icon size
iconColorstring | undefinedButton icon color
iconPosition"right" | "left" | undefined"right"Button icon position
disabledboolean | undefinedfalsePut component in disabled mode

Events

EventValue typeDescription
clickvalue: Event
initvalue: HTMLButtonElement
entervalue: HTMLButtonElement
focusvalue: Event
blurvalue: Event

Slots

NamePropsDescription
defaultDefault slot

Usage Examples

Simple button

Simple button

Simple button usage

Button types

Button types

Different button types: primary, secondary, tertiary, icon, custom

Button sizes

Button sizes

Regular and small button sizes

Buttons with icons

Buttons with icons

Buttons with icons on the left or right side

Button states

Button states

Disabled, block and elevated buttons