|
| 1 | +--- |
| 2 | +title: "Component Gallery" |
| 3 | +description: "Explore all ObjectUI components organized by category" |
| 4 | +--- |
| 5 | + |
| 6 | +# Component Gallery |
| 7 | + |
| 8 | +ObjectUI provides a comprehensive set of components built on React, Tailwind CSS, and Shadcn UI. All components are defined through JSON schemas and rendered with pixel-perfect quality. |
| 9 | + |
| 10 | +## Quick Navigation |
| 11 | + |
| 12 | +Browse components by category to find what you need: |
| 13 | + |
| 14 | +### [Basic Components](/components/basic/text) |
| 15 | +Essential building blocks: Text, Icon, Image, Separator, HTML |
| 16 | + |
| 17 | +### [Form Components](/components/form/button) |
| 18 | +Interactive inputs: Button, Input, Select, Checkbox, Switch, Textarea, Slider |
| 19 | + |
| 20 | +### [Layout Components](/components/layout/container) |
| 21 | +Structure your UI: Container, Card, Grid, Flex, Stack, Tabs |
| 22 | + |
| 23 | +### [Data Display](/components/data-display/badge) |
| 24 | +Show information: Badge, Avatar, Alert, List |
| 25 | + |
| 26 | +### [Feedback Components](/components/feedback/loading) |
| 27 | +User feedback: Loading, Progress, Skeleton |
| 28 | + |
| 29 | +### [Overlay Components](/components/overlay/dialog) |
| 30 | +Floating elements: Dialog, Drawer, Tooltip, Popover |
| 31 | + |
| 32 | +### [Disclosure Components](/components/disclosure/accordion) |
| 33 | +Show/hide content: Accordion, Collapsible |
| 34 | + |
| 35 | +### [Complex Components](/components/complex/table) |
| 36 | +Advanced patterns: Table (with sorting, filtering, pagination) |
| 37 | + |
| 38 | +## Component Categories |
| 39 | + |
| 40 | +### Basic Components |
| 41 | + |
| 42 | +The foundation of your UI. These are simple, single-purpose components: |
| 43 | + |
| 44 | +- **[Text](/components/basic/text)** - Display text with typography control |
| 45 | +- **[Icon](/components/basic/icon)** - Render icons from Lucide React |
| 46 | +- **[Image](/components/basic/image)** - Display images with lazy loading |
| 47 | +- **[Separator](/components/basic/separator)** - Visual divider between content |
| 48 | +- **[HTML](/components/basic/html)** - Render raw HTML content |
| 49 | + |
| 50 | +### Form Components |
| 51 | + |
| 52 | +Interactive elements for user input: |
| 53 | + |
| 54 | +- **[Button](/components/form/button)** - Trigger actions with multiple variants |
| 55 | +- **[Input](/components/form/input)** - Text input with validation |
| 56 | +- **[Select](/components/form/select)** - Dropdown selection |
| 57 | +- **[Checkbox](/components/form/checkbox)** - Boolean selection |
| 58 | +- **[Switch](/components/form/switch)** - Toggle switch |
| 59 | +- **[Textarea](/components/form/textarea)** - Multi-line text input |
| 60 | +- **[Slider](/components/form/slider)** - Numeric range selection |
| 61 | + |
| 62 | +### Layout Components |
| 63 | + |
| 64 | +Structure and organize your interface: |
| 65 | + |
| 66 | +- **[Container](/components/layout/container)** - Responsive container with max-width |
| 67 | +- **[Card](/components/layout/card)** - Content card with header and footer |
| 68 | +- **[Grid](/components/layout/grid)** - CSS Grid layout |
| 69 | +- **[Flex](/components/layout/flex)** - Flexbox layout |
| 70 | +- **[Stack](/components/layout/stack)** - Vertical or horizontal stack |
| 71 | +- **[Tabs](/components/layout/tabs)** - Tabbed interface |
| 72 | + |
| 73 | +### Data Display |
| 74 | + |
| 75 | +Present data to users: |
| 76 | + |
| 77 | +- **[Badge](/components/data-display/badge)** - Small status indicators |
| 78 | +- **[Avatar](/components/data-display/avatar)** - User profile images |
| 79 | +- **[Alert](/components/data-display/alert)** - Contextual messages |
| 80 | +- **[List](/components/data-display/list)** - Ordered or unordered lists |
| 81 | + |
| 82 | +### Feedback Components |
| 83 | + |
| 84 | +Provide visual feedback: |
| 85 | + |
| 86 | +- **[Loading](/components/feedback/loading)** - Loading spinner |
| 87 | +- **[Progress](/components/feedback/progress)** - Progress bar |
| 88 | +- **[Skeleton](/components/feedback/skeleton)** - Loading placeholder |
| 89 | + |
| 90 | +### Overlay Components |
| 91 | + |
| 92 | +Floating UI elements: |
| 93 | + |
| 94 | +- **[Dialog](/components/overlay/dialog)** - Modal dialog |
| 95 | +- **[Drawer](/components/overlay/drawer)** - Slide-out drawer |
| 96 | +- **[Tooltip](/components/overlay/tooltip)** - Hover tooltips |
| 97 | +- **[Popover](/components/overlay/popover)** - Floating popover |
| 98 | + |
| 99 | +### Disclosure Components |
| 100 | + |
| 101 | +Expandable content: |
| 102 | + |
| 103 | +- **[Accordion](/components/disclosure/accordion)** - Expandable sections |
| 104 | +- **[Collapsible](/components/disclosure/collapsible)** - Toggle content visibility |
| 105 | + |
| 106 | +### Complex Components |
| 107 | + |
| 108 | +Advanced, feature-rich components: |
| 109 | + |
| 110 | +- **[Table](/components/complex/table)** - Data table with sorting, filtering, and pagination |
| 111 | + |
| 112 | +## Usage Pattern |
| 113 | + |
| 114 | +All ObjectUI components follow the same schema-based pattern: |
| 115 | + |
| 116 | +```json |
| 117 | +{ |
| 118 | + "type": "component-name", |
| 119 | + "className": "tailwind-classes", |
| 120 | + "props": { |
| 121 | + // Component-specific properties |
| 122 | + } |
| 123 | +} |
| 124 | +``` |
| 125 | + |
| 126 | +### Example: Button |
| 127 | + |
| 128 | +```json |
| 129 | +{ |
| 130 | + "type": "button", |
| 131 | + "label": "Click Me", |
| 132 | + "variant": "default", |
| 133 | + "size": "md", |
| 134 | + "className": "mt-4" |
| 135 | +} |
| 136 | +``` |
| 137 | + |
| 138 | +### Example: Card with Form |
| 139 | + |
| 140 | +```json |
| 141 | +{ |
| 142 | + "type": "card", |
| 143 | + "title": "User Profile", |
| 144 | + "className": "max-w-md", |
| 145 | + "body": { |
| 146 | + "type": "form", |
| 147 | + "fields": [ |
| 148 | + { |
| 149 | + "type": "input", |
| 150 | + "name": "name", |
| 151 | + "label": "Full Name" |
| 152 | + }, |
| 153 | + { |
| 154 | + "type": "input", |
| 155 | + "name": "email", |
| 156 | + "label": "Email", |
| 157 | + "inputType": "email" |
| 158 | + } |
| 159 | + ] |
| 160 | + } |
| 161 | +} |
| 162 | +``` |
| 163 | + |
| 164 | +## Features |
| 165 | + |
| 166 | +All ObjectUI components share these characteristics: |
| 167 | + |
| 168 | +- ✅ **Schema-Driven** - Define with JSON, not code |
| 169 | +- ✅ **Tailwind CSS** - Use utility classes directly in schemas |
| 170 | +- ✅ **Accessible** - WCAG 2.1 AA compliant |
| 171 | +- ✅ **Responsive** - Mobile-first design |
| 172 | +- ✅ **Themeable** - Light/dark mode support |
| 173 | +- ✅ **Type-Safe** - Full TypeScript support |
| 174 | +- ✅ **Performant** - Lazy-loaded and tree-shakable |
| 175 | + |
| 176 | +## Next Steps |
| 177 | + |
| 178 | +- **[Quick Start Guide](/docs/guide/quick-start)** - Build your first ObjectUI app |
| 179 | +- **[Schema Rendering](/docs/concepts/schema-rendering)** - Learn how the engine works |
| 180 | +- **[Component Registry](/docs/concepts/component-registry)** - Register custom components |
| 181 | +- **[Expressions](/docs/concepts/expressions)** - Dynamic values with expressions |
| 182 | + |
| 183 | +## Need Help? |
| 184 | + |
| 185 | +Can't find what you're looking for? Check out: |
| 186 | + |
| 187 | +- [Concepts](/docs/concepts) - Core concepts and architecture |
| 188 | +- [Advanced](/docs/reference) - API documentation and protocol specs |
| 189 | +- [GitHub](https://github.com/objectstack-ai/objectui) - Report issues or contribute |
0 commit comments