File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ ds::comp! {
6767
6868## Style blocks
6969
70+ A component tag accepts ` <w:Style> ` tags only if it defines a ` stylesheets: Option<whack::ds::StyleSheets> ` field.
71+
7072The creator can separate a large CSS into a file. This uses ` include_str!() ` under the hood and still uses lazy parsing for efficiency.
7173
7274``` rust
@@ -87,10 +89,11 @@ r###"
8789
8890Or use ` b:x= ` for passing a ` Binary ` (common for icons).
8991
90- The creator may spread other style blocks as well :
92+ The creator may spread existing style sheets :
9193
9294``` rust
93- <w : Style extend = {style_blocks }/ >
95+ <w : Style extend = {stylesheets }/ >
96+ // `stylesheets: Option<whack::ds::StyleSheets>
9497```
9598
9699The creator may pass a ` HashMap<String, String> ` as arguments to a style sheet...
You can’t perform that action at this time.
0 commit comments