Files
zeekay d68fde9f06 restore(@zenlm/ui): add package source with perfect circle SVG and use client
Restore full @zenlm/ui package source recovered from git history (924614b46).
Key changes from restored version:
- ZenEnso uses SVG <circle> element (r=172, cx/cy=256) — mathematically perfect
- stroke-dasharray=1081 (2π×172) for exact circumference animation
- rotate(-90 256 256) starts draw from 12 o'clock
- Default color: white (was #A855F7)
- tsup onSuccess hook injects 'use client' into all dist files post-build
- Published as @zenlm/[email protected] on npm
2026-03-01 16:19:34 -08:00

39 lines
996 B
TypeScript

/**
* @zenlm/ui — React components for the Zen LM model library
*
* Provides ready-to-use, data-agnostic components for displaying
* Zen models in any React/Next.js application.
*
* @example
* ```tsx
* import { ModelLibrary } from '@zenlm/ui'
* import { allModels, families } from '@zenlm/models'
*
* export default function ModelsPage() {
* return (
* <ModelLibrary
* allModels={allModels}
* families={families}
* chatBaseUrl="https://hanzo.chat"
* />
* )
* }
* ```
*/
export { ModelCard } from './ModelCard'
export { ModelTable } from './ModelTable'
export { ModelLibrary, ModelFamilySection } from './ModelLibrary'
export { ZenEnso } from './ZenEnso'
export type {
ZenModelLike,
ModelFamilyLike,
ModelSpecLike,
ModelPricingLike,
} from './types'
export type { ModelCardProps } from './ModelCard'
export type { ModelTableProps } from './ModelTable'
export type { ModelLibraryProps, ModelFamilySectionProps } from './ModelLibrary'