Button

A themed button/link primitive with semantic colors, icon composition, tooltips, and loading presentation.

Interactive live playground

Tweak props, change states, and see the live component respond in real time.

Live

How to call

Import directly from the Loomora package root. For projects without Tailwind CSS, ensure loomora/dist/index.css is imported once in your root layout.

import { Button } from 'loomora'

<Button color="info" variant="fill" onClick={() => setClicked(true)}>
  Save changes
</Button>

API reference

Important public props and how they affect rendering.

7 props
PropTypeDefaultDescription
variant'fill' | 'outline' | 'text' | 'none''fill'Visual treatment for the action.
colorsemantic colorconfig defaultTheme color token such as info, primary, success, or second.
sizetiny … extreme | none'default'Size preset from shared configuration.
loadingbooleanfalseReplaces regular content with loader content; does not disable the button.
hrefstring—Renders a navigation link instead of a native button.
onClickMouseEvent handler—Action handler for buttons and links.
conditionbooleantrueReturns null when false.