styled components custom behavior
This commit is contained in:
parent
8ee2707ce6
commit
9d0d54c2e4
3 changed files with 22 additions and 5 deletions
|
@ -8,7 +8,9 @@ rec {
|
|||
|
||||
writeAttrs = attrs:
|
||||
toString (builtins.attrValues (
|
||||
builtins.mapAttrs (key: value: ''${key}="${toString value}"'') attrs
|
||||
builtins.mapAttrs (key: value:
|
||||
if (builtins.substring 0 2 key) == "__" then ""
|
||||
else ''${key}="${toString value}"'') attrs
|
||||
));
|
||||
|
||||
tag = tag: attrs: child: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue