import { useState } from 'react' import { Link } from 'wouter' import { Button } from '@/client/components/ui/button' import registry from '@/registry.json' import { UI_COMPONENT_PREVIEWS } from './ui-component-previews' const registryItems = registry.items.filter(item => item.type === 'registry:ui') export function UiComponentsPage() { const [selectedName, setSelectedName] = useState(registryItems[0]?.name ?? '') const Preview = UI_COMPONENT_PREVIEWS[selectedName as keyof typeof UI_COMPONENT_PREVIEWS] return (
← Dev pages

Playground

UI components

Interactive previews for registry components.

{Preview && }
) }