import React from 'react'; import { PixelSidebar } from './PixelSidebar'; const sections = [ { title: 'Workspace', items: [ { id: 'dashboard', label: 'Dashboard', active: true }, { id: 'projects', label: 'Projects', badge: { label: '4', tone: 'cyan' as const } }, { id: 'tasks', label: 'Tasks' }, ], }, { title: 'Account', items: [ { id: 'settings', label: 'Settings' }, { id: 'billing', label: 'Billing', badge: { label: 'NEW', tone: 'green' as const } }, ], }, ]; export function Default() { return (
pxlkit} />
); } export function Collapsible() { const [collapsed, setCollapsed] = React.useState(false); return (
pxlkit} />
); } export function Nested() { const nestedSections = [ { title: 'Library', items: [ { id: 'components', label: 'Components', active: true, nested: [ { id: 'buttons', label: 'Buttons' }, { id: 'forms', label: 'Forms' }, { id: 'navigation', label: 'Navigation' }, ], }, { id: 'tokens', label: 'Tokens' }, ], }, ]; return (
); } export function WithFooter() { return (
pxlkit} footer={v2.0.0} />
); }