mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-30 14:41:16 +00:00
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
39 lines
996 B
TypeScript
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'
|