Skip to content
Projects

About

React component library on Radix Primitives. Install packages on demand; use with theme or headless.

Web & App Development

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en-US.md

Original

中文 | English

Sea-lion-uix

npm License: MIT Deploy Storybook

React component library built on Radix Primitives. Theme and Headless modes.

📖 Documentation


Introduction

Sea-lion-uix (or x) is the next generation of sea-lion-ui, rebuilt on Radix Primitives. It ships 49 components—buttons, forms, layout, feedback, data display—each as a separate package for install-on-demand.

Features

  • Independent packages: Install and upgrade per component; no bloat when used with other UI libraries
  • Theme & Headless: Use with theme styles or in headless (unstyled) mode
  • Theme panel: Visually tune brand colors, neutrals, dark mode, radius, fonts, shadows, and more
  • Flexible API: asChild, Slot, exposed state; follows Radix’s styling approach
  • Stack-friendly: Less + CSS custom properties; works with eslint-config-ali, iconfont

Environment Support

Browser coverage is in line with typical React libraries; see browsersl.ist (defaults) for a concrete query.

  • Modern browsers
  • Server-side Rendering
Edge
Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
last 2 versions last 2 versions last 2 versions last 2 versions

Installation

Install only the packages you need. No single “kitchen sink” bundle.

# Install a component (e.g. Button)
pnpm add @sea-lion/react-button

# Install Theme when you want default styles
pnpm add @sea-lion/react-theme

Without Theme, components run in headless mode (no default styles).

Quick Start

import { Theme } from "@sea-lion/react-theme";
import { Button } from "@sea-lion/react-button";

export default function App() {
  return (
    <Theme>
      <Button>Click me</Button>
    </Theme>
  );
}

See the documentation for more components and examples.

Development

Requirements

  • Node >= 18
  • pnpm >= 9

Setup and run

git clone https://github.com/jsweber/sea-lion-uix.git
cd sea-lion-uix
pnpm install
pnpm dev

pnpm dev builds Theme assets and starts Storybook at http://localhost:6006.

Scripts

Command Description
pnpm dev Build Theme and start Storybook
pnpm build Build all packages and Theme
pnpm build-storybook Build Storybook static output only
pnpm publish-stable Build, run changeset, and publish

Documentation (GitHub Pages)

  1. In repo Settings → Pages, set Source to GitHub Actions
  2. Push to main or run the “Deploy Storybook to GitHub Pages” workflow from Actions
  3. Docs will be available at https://<owner>.github.io/sea-lion-uix/

Contact

Questions or suggestions: [email protected].

License

MIT

Explore related projects

Loading…