Skip to content

BeOnAuto/ui-components

Repository files navigation

@onauto/ui-components

Shared React component library built on shadcn/ui primitives and Radix UI, used across the on.auto platform.

The package also exports a json-render component catalog so specs produced by the platform's generation pipeline can be rendered by these components at runtime.

Install

pnpm add @onauto/ui-components
# or
npm install @onauto/ui-components

Peer dependencies: react >= 19 and react-dom >= 19.

Entry points

Import path What it is
@onauto/ui-components Server-safe catalog tools (no JSX). Used by pipelines.
@onauto/ui-components/components The components map consumed by @json-render/react.
@onauto/ui-components/catalog The static component catalog (prop schemas, etc).
@onauto/ui-components/catalog-tools Helpers for listing and inspecting the catalog.

Server-safe usage

import { getComponentList, getComponentDetails } from '@onauto/ui-components';

Rendering with json-render

import { components } from '@onauto/ui-components/components';
import { catalog } from '@onauto/ui-components/catalog';

License

MIT © on.auto

About

Shared React component library built on shadcn/ui primitives for the on.auto platform

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors