Skip to content
  • InstallationGuideCLI, shadcn, npm, React and Next.js
  • ThemingGuideThe theme contract, every token, writing a theme
  • ButtonActions & displayActions. Default, primary, ghost and danger, in three sizes, plus a square icon button.
  • BadgeActions & displayShort status labels and tags, in status colours or the theme’s six palette colours.
  • AvatarActions & displayA photo or initials in a palette colour, in three sizes, and a stacked group.
  • CardActions & displayThe raised surface for grouped content, with header, body and footer slots and six palette tints.
  • SurfaceActions & displayThe three materials every theme defines: raised, inset and overlay. Build your own components on them.
  • InputFormsText fields and textareas with a visible label, hint and invalid state.
  • SelectFormsA styled native <select>: keyboard, mobile pickers and screen readers work for free.
  • Checkbox and radioFormsNative checkboxes and radios, restyled, including the indeterminate state and radio groups.
  • SwitchFormsAn on/off setting that applies at once: a checkbox with role="switch".
  • SliderFormsA native range input whose filled track follows the thumb.
  • Dialog and drawerOverlaysModal <dialog>: the browser traps focus, handles Esc and returns focus to the trigger. Drawers slide from an edge.
  • Popover and menuOverlaysNative popover API (light dismiss, Esc, top layer), placed next to its trigger. A menu is a popover with role="menu".
  • TooltipOverlaysA CSS-only label on hover and keyboard focus. Esc hides it.
  • ToastFeedbackNotifications in one polite live region; errors use role="alert". They pause while hovered or focused.
  • AlertFeedbackInline messages in four tones.
  • ProgressFeedbackA native <progress>; leave out value for an indeterminate bar.
  • SkeletonFeedbackPlaceholders while content loads.
  • TabsNavigation & dataWAI-ARIA tabs with automatic activation and roving focus.
  • AccordionNavigation & dataNative <details>: works without JavaScript. The same name keeps one item open.
  • TableNavigation & dataData tables that scroll sideways on small screens; compact density tightens rows.
  • PaginationNavigation & dataPage links in a labelled nav with the current page marked.

Navigation & data

Table

Data tables that scroll sideways on small screens; compact density tightens rows.

Table

InvoiceClientStatusAmount
#1042Acme LtdPending₹4,200
#1041NorthwindPaid₹12,800
#1040GlobexOverdue₹2,150
html
<div class="og-table-wrap" style="width: 100%">
  <table class="og-table">
    <thead><tr><th>Invoice</th><th>Client</th><th>Status</th><th class="og-table__num">Amount</th></tr></thead>
    <tbody>
      <tr><td>#1042</td><td>Acme Ltd</td><td><span class="og-badge og-badge--warning">Pending</span></td><td class="og-table__num">₹4,200</td></tr>
      <tr><td>#1041</td><td>Northwind</td><td><span class="og-badge og-badge--success">Paid</span></td><td class="og-table__num">₹12,800</td></tr>
      <tr><td>#1040</td><td>Globex</td><td><span class="og-badge og-badge--danger">Overdue</span></td><td class="og-table__num">₹2,150</td></tr>
    </tbody>
  </table>
</div>

React

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

<Table>
  <thead><tr><th>Invoice</th><th className="og-table__num">Amount</th></tr></thead>
  <tbody><tr><td>#1042</td><td className="og-table__num">₹4,200</td></tr></tbody>
</Table>

In every theme

Clean SaaS

InvoiceClientStatusAmount
#1042Acme LtdPending₹4,200
#1041NorthwindPaid₹12,800
#1040GlobexOverdue₹2,150

Glassmorphism 2.0

InvoiceClientStatusAmount
#1042Acme LtdPending₹4,200
#1041NorthwindPaid₹12,800
#1040GlobexOverdue₹2,150

Liquid glass

InvoiceClientStatusAmount
#1042Acme LtdPending₹4,200
#1041NorthwindPaid₹12,800
#1040GlobexOverdue₹2,150

Neumorphism / Soft UI

InvoiceClientStatusAmount
#1042Acme LtdPending₹4,200
#1041NorthwindPaid₹12,800
#1040GlobexOverdue₹2,150

Claymorphism

InvoiceClientStatusAmount
#1042Acme LtdPending₹4,200
#1041NorthwindPaid₹12,800
#1040GlobexOverdue₹2,150

Neubrutalism

InvoiceClientStatusAmount
#1042Acme LtdPending₹4,200
#1041NorthwindPaid₹12,800
#1040GlobexOverdue₹2,150

Aurora / mesh gradient

InvoiceClientStatusAmount
#1042Acme LtdPending₹4,200
#1041NorthwindPaid₹12,800
#1040GlobexOverdue₹2,150

Keyboard and screen readers

  • A plain table: screen readers navigate it with their table commands. Use <th> for headers.

Install

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