Skip to content

yetric/design-system

Repository files navigation

@yetric/ui

A practical React component library for modern and AI-native applications.

87 accessible, composable components — from everyday form elements to streaming chat UI, data grids, rich text editors, and maps. Provider-agnostic by design.

Install

npm install @yetric/ui

Quick start

import { Button, Card, CardContent, CardHeader, CardTitle } from "@yetric/ui";
import "@yetric/ui/styles";

export function Example() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Hello</CardTitle>
      </CardHeader>
      <CardContent>
        <Button>Get started</Button>
      </CardContent>
    </Card>
  );
}

AI components

import { AIChat, useChat } from "@yetric/ui";

export function Assistant() {
  const { messages, send, isLoading } = useChat({
    onRequest: async (messages) => streamFromYourBackend(messages),
  });

  return <AIChat messages={messages} isLoading={isLoading} onSend={send} />;
}

Documentation

Includes installation guides for Next.js and Vite, theming reference, dark mode setup, and AI component integration guides for OpenAI, Anthropic, and the Vercel AI SDK.

The docs source lives in docs/ — see the contributing guide for how to run them locally.

Storybook

Component reference →

Live examples, prop tables, and interactive controls for all 87 components.

Development

npm install
npm run storybook   # component development
npm run test        # unit tests
npm run typecheck   # TypeScript check
npm run build       # build the library

Contributing

See the contributing guide and adding a component.

License

ISC

About

React Components for Yetric AB Design System

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages