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
|`show-separators`|`boolean`| Show visual separators between textarea sections |
58
59
59
60
| Property | Type | Description |
60
61
|----------|------|-------------|
@@ -184,6 +185,25 @@ Toggle HTML attributes on/off. Supports attributes with or without values:
184
185
</interactive-code>
185
186
```
186
187
188
+
### Conditional Textareas
189
+
190
+
Show different code sections based on binding values. Multiple `<textarea>` elements are concatenated, and the `condition` attribute controls visibility:
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,30 @@
2
2
3
3
## 1.0.6
4
4
5
+
### Features
6
+
7
+
-**Conditional textareas**: Multiple `<textarea>` elements can now have a `condition` attribute to conditionally show/hide code sections based on binding values
8
+
-`condition="key"` → show when binding is truthy
9
+
-`condition="!key"` → show when binding is falsy
10
+
- Useful for showing different code patterns based on user selection
11
+
-**Section separators**: Optional `show-separators` attribute on `<interactive-code>` adds subtle visual separators between concatenated textarea sections
12
+
- Customizable via `--code-separator-color` CSS variable
<p>Show different code sections based on binding values. Use <code>condition</code> attribute on <code><textarea></code> elements. Add <code>show-separators</code> to display visual separators between sections:</p>
793
+
794
+
<divclass="code-header"><span>Written by developer</span></div>
0 commit comments