import { createSignal } from 'solid-js'; import { Button, TextInput, Label, Toggle, Slider, Panel, Dropdown, Table, } from './ui'; /** * ComponentDemo -- showcase of all 8 core UI components. * * Visual proof that Phase 3 is complete: every component renders * with representative states, responds to interaction, and updates * on theme switch. */ export function ComponentDemo() { const [toggleOn, setToggleOn] = createSignal(false); const [sliderVal, setSliderVal] = createSignal(50); const [selectedOption, setSelectedOption] = createSignal(''); const [inputVal, setInputVal] = createSignal(''); // Sample table data const tableData = [ { id: 1, name: 'Neural Core', type: 'Processor', status: 'Active', power: 95 }, { id: 2, name: 'Holo Matrix', type: 'Display', status: 'Standby', power: 42 }, { id: 3, name: 'Cryo Cache', type: 'Storage', status: 'Active', power: 78 }, { id: 4, name: 'Flux Router', type: 'Network', status: 'Offline', power: 0 }, { id: 5, name: 'Photon Drive', type: 'Engine', status: 'Active', power: 88 }, ]; return (

Component Library

{/* === Buttons === */}

Buttons

{/* Row 1: Variants */}
{/* Row 2: Sizes */}
{/* Row 3: States */}
{/* Row 4: Semantic colors */}
{/* === Inputs === */}

Text Inputs

setInputVal(e.currentTarget.value)} />
{/* === Toggle & Slider === */}

Controls

{toggleOn() ? 'ON' : 'OFF'}
Value: {sliderVal()}
{/* === Dropdown === */}

Dropdown

Selected: {selectedOption() || 'none'}
{/* === Table === */}

Data Table

{/* === Labels === */}

Labels & Typography

); }