ortaui

Button

Pill button on Base UI. Presses down 1px with a 50ms inset shadow and releases over 180ms.

Installation#

npx shadcn add @ortaui/button

Examples#

Variants#

Sizes#

With icon#

Disabled#

API reference#

PropTypeDefaultDescription
surface"default" | "raised"autoLook on a panel. Unset: raised (page fill + border) inside any [data-surface] container. "raised" forces it anywhere; "default" keeps the muted fill even inside a surface.
variant"primary" | "secondary" | "ghost" | "outline" | "destructive" | "link""primary"Visual style.
size"sm" | "md" | "icon""md"sm 36px, md 42px, icon is a 36px circle.
renderReactElement-Render as another element (Base UI), e.g. a link.
classNamestring-Merged with the component classes via cn().