You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: update value type in InputProps to ClassValue and improve class binding
* fix: ensure proper binding in toClassValue calls for class handling
* fix: refine class binding in dropdown query component and remove unused imports
* fix: update dropdown story with new data and improve trigger functionality
* fix: add missing line breaks for improved readability in dropdown index file
* fix: simplify selected items rendering in dropdown trigger
* docs: enhance README with composability section and advanced usage example
* bump version to 1.0.0-alpha.20
Copy file name to clipboardExpand all lines: README.md
+83Lines changed: 83 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,10 @@ Leverages Svelte's fine-grained reactivity system for optimal performance and sm
40
40
41
41
Components are headless by default, giving you complete control over styling while providing sensible defaults.
42
42
43
+
### 🎨 **Composable**
44
+
45
+
Build complex UIs by combining simple, reusable components. Each component is designed to work seamlessly with others through the Bond pattern and context API. Create sophisticated features like multi-level dropdowns, nested accordions, or custom form controls by composing atomic components together.
46
+
43
47
---
44
48
45
49
## 📦 Available Components
@@ -268,6 +272,85 @@ For more control, you can use the Bond system directly:
268
272
</div>
269
273
```
270
274
275
+
### Advanced Usage With Composition
276
+
277
+
This example demonstrates the power of component composition by combining `Dropdown`, `Input`, and animation capabilities to create a searchable multi-select dropdown with smooth transitions:
278
+
279
+
```svelte
280
+
<script lang="ts">
281
+
import { Dropdown, Input, Root, filter } from '@svelte-atoms/core';
0 commit comments