Components

39 accessible React primitives with CVA variants and full TypeScript types. Copy any of them into your project with npx softuq add, then own and edit the code.

Accordion

Default

Bordered

Alert

Variants

Heads up!

You can add components to your app using the CLI.

Information

This is an informational alert message.

Success

Your changes have been saved successfully.

Warning

Please review your settings before proceeding.

Error

Something went wrong. Please try again.

Without icon

No icon alert

This alert has no icon, just title and description.

Title only

Quick note — no description needed.

Long content

Breaking changes in v2.0

Refer to the migration guide for detailed instructions. The API has been completely redesigned. All existing endpoints will be deprecated on March 31st. Please migrate your application to the new endpoints before the deadline.

Fit width (hug content)

Saved
3 items selected

Click to manage selection.

Rich content

Deployment complete

Your app is live at production-abc123. Version v1.4.2 is now serving traffic.

Aurora

Drifting multi-color gradient background layer. Parent must have position: relative and overflow: hidden. Decorative only (aria-hidden).

subtle
medium
intense
<div className="relative overflow-hidden">
  <Aurora intensity="medium" />
  <div className="relative">…content…</div>
</div>

Avatar

Sizes & Fallback

SM
MD
LG
J
User

Badge

Variants

DefaultSecondaryOutlineDestructiveSuccessWarning

Sizes

SmallMedium

Button

Variants

Sizes

With icon

Loading

States

Card

Default Card

Basic card with subtle shadow

Card content goes here.

Elevated Card

Soft raised shadow

More prominent elevation.

Interactive Card

Hover to see floating effect

Rendered as a link via asChild.

Checkbox

Code

Inline code

Run npx softuq init to set up your project.

In context

Set data-theme="light" on <html> to enable light mode. All tokens use oklch() color space.

CodeBlock

terminal
# Install dependencies
pnpm install

# Start dev server
pnpm dev

CodeBlock with JSX

page.tsx
import { Button } from "@/components/ui/button";

export default function Page() {
  return (
    <Button variant="default">Click me</Button>
  );
}

CodeBlock without title

const greeting = "Hello, world!";

Dialog

Dots

Three-dot thinking indicator. Renders with role="status" and a default aria-label of Thinking.

<Dots size="md" tone="iridescent" />

Empty

No messages

You're all caught up. New messages will appear here.

Form Text

We'll never share your email with anyone.

Username is already taken.

Username is available!

Password is weak.

Halo

Rotating iridescent border around any child. Use for AI-generated or agent-in-progress states. Respects prefers-reduced-motion (freezes in place, keeps visuals).

<Halo tone="iridescent" size="md" speed="normal" active>
  <Button>Generate</Button>
</Halo>

Input & Textarea

This is a help text below the input.

This field is required.

Username is available.

Content must be at least 10 characters.

Kbd

Sizes

⌘⌘⌘

Combos

⌘+KCtrl+Shift+PEscto close

Label

Pagination

Sizes

Few pages

Popover

Progress

Progress45%

Radio

Section Nav

Alphabetical groups

Select

Separator

Content above

Content below

LeftRight

Sheet

Skeleton

Slider

Single

40

Range

25–75

Sizes

Disabled

Spinner

Sizes

With color

In context

Fetching data...

Table

A list of recent invoices.
InvoiceStatusMethodAmount
INV001PaidCredit Card$250.00
INV002PendingPayPal$150.00
INV003UnpaidBank Transfer$350.00
INV004PaidCredit Card$450.00
Total$1,200.00

Tabs

Default

Account settings content.

Pills

All items.

Underline

Overview dashboard.

Tag

Variants

DefaultAccentSuccessWarningDestructive

Dismissible

RemovableAccentSuccessError

Sizes

SmallMedium

Disabled

DisabledDisabled dismiss

Toast

Variants

Title only

Long content (truncated)

Custom duration

Position

Toggle

With label

Receive push alerts on this device.

Toggle Group

Single (alignment)

Multiple (text style)

Outline variant

Sizes

Tooltip