We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 567a971 commit fe371b1Copy full SHA for fe371b1
1 file changed
src/whackds.md
@@ -67,6 +67,8 @@ ds::comp! {
67
68
## Style blocks
69
70
+A component tag accepts `<w:Style> `tags only if it defines a `stylesheets: Option<whack::ds::StyleSheets>` field.
71
+
72
The creator can separate a large CSS into a file. This uses `include_str!()` under the hood and still uses lazy parsing for efficiency.
73
74
```rust
@@ -87,10 +89,11 @@ r###"
87
89
88
90
Or use `b:x=` for passing a `Binary` (common for icons).
91
-The creator may spread other style blocks as well:
92
+The creator may spread existing style sheets:
93
94
-<w:Style extend={style_blocks}/>
95
+<w:Style extend={stylesheets}/>
96
+ // `stylesheets: Option<whack::ds::StyleSheets>
97
```
98
99
The creator may pass a `HashMap<String, String>` as arguments to a style sheet...
0 commit comments