Forms & Inputs

Button

The action button system. Designed for ERP workflows: every action (create, save, edit, delete, print, send, download, refresh) has its own semantic variant with appropriate colors and icons.

Import
import { Button } from 'indas-ui'

Action buttons

Recommended

These are the workhorse variants. Each carries semantic color, optional auto-icon, and consistent sizing. On mobile, they collapse to icon-only with the label as tooltip.

VariantColorWhen to use
action-createPrimary (brand)Add a new record (user, item, ledger…)
action-saveSuccess (green)Commit changes to the database
action-save-asSkyClone the current record with new identifiers
action-editWarning (amber)Switch a row to editable mode
action-deleteError (red)Destructive delete operation
action-printPurpleGenerate a printable PDF or send to printer
action-sendInfo (blue)Send a quotation, invoice, or notification
action-mailError (red)Send an email with attachment
action-downloadSuccess (green)Download CSV/Excel/PDF export
action-refreshNeutralRe-fetch data from server
action-applyTeal (auto-icon: ✓)Apply filter, settings, or selection
action-cancelNeutral (auto-icon: ✗)Cancel current modal or operation
action-backNeutralNavigate to previous step
action-secondaryNeutralSecondary actions in toolbars

Companion components

Three button variants exported alongside Button for specific use cases.

Generic variants

Standard variants for non-action use cases (form submits, hero CTAs, modal footers). Prefer action variants when the intent is semantic.

Sizes

States

Props

PropTypeDefault
variant'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'action-*' (14 variants)'primary'
size'xs' | 'sm' | 'md' | 'lg' | 'footer''md'
iconLucideIcon | ReactNode
iconPosition'left' | 'right''left'
iconOnlybooleanfalse
loadingbooleanfalse
fabbooleanfalse
tooltipstring