Button preview
Press, loading, success and disabled states.
free · Essentials · primitive
When to use
- Use it when a product interface needs press, loading, success and disabled states.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose button-group instead when a labelled cluster of native button actions with shared separator geometry, horizontal or vertical orientation, and narrow wrapping is the actual interface need, rather than button.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add https://tidalui.com/r/tidal-button.jsonImport components/ui/tidal.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import{TidalButton}from"./components/ui/tidal-button";
export default()=><div className="tidal-scope"><TidalButton/></div>;API and props
TidalButton.loadingboolean | undefinedOptional loading value accepted by this exported component.
TidalButton.variant"primary" | "secondary" | "ghost" | undefinedOptional variant value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Install the declared registry dependencies and render inside a tidal-scope with the foundation stylesheet loaded.