@rock.star/ui

Build once. Keep every Rockstar product familiar.

A practical React UI layer with accessible primitives, motion-ready components, icons, hooks, and shared theme styles.

01 / Install

Add the package

Install the package once in any React or Next.js project.

bun add @rock.star/ui

02 / Usage

Import what you need

UI components are available from the root. Icons, hooks, utilities, and styles use focused subpaths.

import { Button } from "@rock.star/ui"
import { Loader } from "@rock.star/ui/icon"
import { useMounted } from "@rock.star/ui/hooks"
import "@rock.star/ui/styles.css"

03 / Components

Try the primitives

These examples are rendered from the same package that your applications install.

Button
Keyboard-friendly, compact actions.
Interactive
Input
Use the same primitive across product surfaces.

The component inherits the package theme tokens.