UI LibraryUI Library
Guide
Components
Styling
Repo
Guide
Components
Styling
Repo
  • Guide

    • Introduction
    • Getting Started
  • Components

    • CataUiAccordion
    • CataUiAccordionItem
    • CataUiAlert
    • CataUiAnchorMenu
    • CataUiBadge
    • CataUiButton
    • CataUiCollapse
    • CataUiDraggable
    • CataUiDropdown
    • CataUiDropover
    • CataUiFileTree
    • CataUiIcon
    • CataUiIconSwitch
    • CataUiInput
    • CataUiInputCheckbox
    • CataUiInputColor
    • CataUiInputDate
    • CataUiInputGroup
    • CataUiInputRadio
    • CataUiInputSearch
    • CataUiInputSelect
    • CataUiMasonry
    • CataUiMasonryTile
    • CataUiLogo
    • CataUiModal
    • CataUiPaginate
    • CataUiProgress
    • CataUiSpinner
    • CataUiStatusLabel
    • CataUiSwitch
    • CataUiTable
    • CataUiTableAG
    • CataUiTableFooter
    • CataUiTabs
    • CataUiTabSwitch
    • CataUiTooltip
  • Styling

    • Colors
    • Icons
    • Typography
    • Utils

CataUiButton

A versatile button component with various styles, sizes, and states to match your UI needs.

Button Types

Button with Icons

Button Sizes

Button States

Examples

Button Types

<CataUiButton type="primary" label="Primary" />
<CataUiButton type="secondary" label="Secondary" />
<CataUiButton type="tertiary" label="Tertiary" />
<CataUiButton type="delete" label="Delete" />
<CataUiButton type="destructive" label="Destructive" />
<CataUiButton type="transparent" label="Transparent" />

Button with Icons

<CataUiButton label="Left Icon" icon="bi-check" />
<CataUiButton label="Right Icon" iconRight="bi-arrow-right" />
<CataUiButton icon="bi-gear" />

Button Sizes

<CataUiButton size="small" label="Small Button" />
<CataUiButton size="large" label="Large Button" />

Button States

<CataUiButton label="Loading" loading />
<CataUiButton label="Disabled" disabled />

Props

PropDescriptionTypeDefaultRequiredOptions
disabledDisables the button, preventing user interactionBooleanfalsefalse
iconThe icon to display on the left side of the button label (see Icons)String''falseAny valid icon name
iconRightThe icon to display on the right side of the button label (see Icons)String''falseAny valid icon name
labelThe text to display inside the buttonString''false
loadingShows a loading spinner and disables the button when trueBooleanfalsefalse
sizeControls the size of the buttonString'large'false'small', 'large'
typeThe visual style of the buttonString'primary'false'primary', 'secondary', 'tertiary', 'delete', 'destructive', 'transparent'
Prev
CataUiBadge
Next
CataUiCollapse