Skip to content
ghostui

Preview

Installation

Install the local ghost-kit source bundle while the registry runs at localhost:3110. It contains this component and its source dependencies. Prepare the local registry first so token dependencies also resolve locally.

Install

Basic usage

Structure

Examples

Solid

The highest-emphasis action. Use it for the main next step in a group.

Subtle

The default control. Mist surface with no outline.

Ghost

Transparent at rest. Use it for low-emphasis actions inside an existing surface.

Outline

Transparent with a border. For secondary surfaces.

Destructive

Marks destruction. Never for safe actions.

Icons

Use leadingIcon or trailingIcon with a label. Use IconButton for icon-only controls. Always give icon-only buttons an accessible name.

Loading and disabled

Busy work shows a spinner, marks aria-busy, and stays inert but focusable. Disabled work remains visible but cannot be activated.

Sizes

Text and icon buttons share one height scale: xs 24px, sm 28px, base 32px, and lg 40px. The default is base. touch stays 44px. Coarse-pointer controls expand to at least 44px.

Extra small: 24px

Use for secondary actions in dense rows.

Small: 28px

Use in compact toolbars and forms.

Base: 32px

Use for ordinary actions. This is the default.

Large: 40px

Use for prominent actions that need more space.

Touch: 44px

Use when an action needs a dedicated touch target.

API reference

For inherited behavior and additional part properties, see the Base UI Button API.