tailwind-ux-kit 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -190,6 +190,14 @@ iconContainerClass: 'bg-green-200 text-green-900 rounded-full p-2',
|
|
|
190
190
|
|
|
191
191
|
- Horizontal & Vertical Tabs
|
|
192
192
|
- Accordions
|
|
193
|
+
| Prop | Type | Default | Description |
|
|
194
|
+
| ------------------- | ----------------------------------------------- | ------- | ------------------------------------------------------------------ |
|
|
195
|
+
| `items` | `T[]` (`AccordionItemBase` generic) | — | Array of accordion items with id, title, content, and custom props |
|
|
196
|
+
| `allowMultipleOpen` | `boolean` | `false` | Allow multiple panels to be open simultaneously |
|
|
197
|
+
| `className` | `string` | `""` | Custom class name for the accordion container |
|
|
198
|
+
| `renderTitle` | `(item: T, isOpen: boolean) => React.ReactNode` | — | Custom render function for the accordion header/title |
|
|
199
|
+
| `renderContent` | `(item: T, isOpen: boolean) => React.ReactNode` | — | Custom render function for the accordion content |
|
|
200
|
+
|
|
193
201
|
- FAQ Sections
|
|
194
202
|
|
|
195
203
|
### 10. Lists & Grids
|