Skip to content

Actions & display

Button

Actions. Default, primary, ghost and danger, in three sizes, plus a square icon button.

Variants

html
<button class="og-button og-button--primary">Save changes</button>
<button class="og-button">Cancel</button>
<button class="og-button og-button--ghost">Skip</button>
<button class="og-button og-button--danger">Delete</button>

Sizes

html
<button class="og-button og-button--primary og-button--sm">Small</button>
<button class="og-button og-button--primary">Medium</button>
<button class="og-button og-button--primary og-button--lg">Large</button>

Icon and disabled

html
<button class="og-button og-button--icon" aria-label="Copy link">⧉</button>
<button class="og-button" disabled>Disabled</button>

React

tsx
import { Button } from '@og-ui/react';

<Button variant="primary">Save changes</Button>
<Button variant="ghost" size="sm">Skip</Button>
<Button icon aria-label="Copy link">⧉</Button>

In every theme

Clean SaaS

Glassmorphism 2.0

Liquid glass

Neumorphism / Soft UI

Claymorphism

Neubrutalism

Aurora / mesh gradient

Keyboard and screen readers

  • Tab focuses it; Enter and Space activate it (native <button>).
  • An icon button needs an aria-label.

Install

bash
npx @og-ui/cli add button
npx @og-ui/cli add button --react   # with the React component