@polygonschmied/stellar-core
v0.4.0
Published
React UI components for Stellar DS — Paper, Clay, Theater materials.
Maintainers
Readme
@polygonschmied/stellar-core
React UI components for Stellar DS — built on top of Radix UI with the Paper / Clay / Theater material system.
Install
pnpm add @polygonschmied/stellar-core @polygonschmied/stellar-tokensstellar-tokens is a hard requirement — its CSS provides every variable the
components reference at runtime.
Peer dependencies: react >= 18, react-dom >= 18. The Table component
additionally needs @tanstack/react-table ^8 (optional peer — only install if
you use Table).
Use
// once, at your app root
import "@polygonschmied/stellar-tokens/styles.css";
// anywhere
import { Button } from "@polygonschmied/stellar-core";
export function Save() {
return <Button variant="primary">Save</Button>;
}What's inside
Roughly 50 components across three rollout phases:
- Inputs — Button, Input, Textarea, Checkbox, RadioGroup, Switch, Select, Slider, Segmented, Datepicker, FormField
- Overlays — Dialog, Drawer, DropdownMenu, Tooltip, Toast, Portal
- Navigation — Tabs, Accordion, Stepper, Tree, Breadcrumbs, Pagination
- Data — Table, Avatar, Badge, Chip, Skeleton, EmptyState, ProgressBar, Spinner
- Layout — Stack, Inline, Container, AspectRatio, Divider
See src/index.ts for the full export list, or
the playground Storybook for live demos.
License
MIT — see the repo README for the wider picture.
