# kinu (Preact UI) Component Library Documentation kinu is a lightweight, modern UI component library built for Preact that provides a comprehensive set of accessible, customizable components with minimal JavaScript and a CSS-based styling system. ## Architecture Overview kinu is primarily a pass-through from JSX to semantic HTML that attaches `[k="component-name"]` attributes to elements for styling and behavior. The `p` stands for `kinu` and contains the kinu component name. CSS uses these attributes to style components without JavaScript, and delegated event handlers use them for features like keyboard navigation. ### Core Philosophy - **Minimal JavaScript**: Components use native HTML elements with minimal JavaScript for enhanced functionality - **CSS-based Styling**: All styling handled through CSS using `p` attribute selectors - **Semantic HTML**: Components render as appropriate semantic HTML elements - **Accessibility First**: Built with accessibility and keyboard navigation in mind ## Component Categories & Interfaces ### Form Controls #### Button Renders as: ` ``` #### Input Renders as: `` ```tsx ``` #### Checkbox Renders as: `` ```tsx ``` #### Radio & RadioGroup Renders as: `
` (RadioGroup), `` (Radio) ```tsx ``` #### Select Renders as: ` ``` #### Switch Renders as: `` ```tsx ``` #### Slider Renders as: `` ```tsx ``` #### Textarea Renders as: `