styled components
This commit is contained in:
parent
24cfbe8727
commit
ff2f68c907
6 changed files with 118 additions and 7 deletions
|
@ -8,11 +8,11 @@ rec {
|
|||
|
||||
writeAttrs = attrs:
|
||||
toString (builtins.attrValues (
|
||||
builtins.mapAttrs (key: value: ''${key}="${value}"'') attrs
|
||||
builtins.mapAttrs (key: value: ''${key}="${toString value}"'') attrs
|
||||
));
|
||||
|
||||
tag = tag: attrs: child: {
|
||||
inherit tag child attrs;
|
||||
inherit tag attrs child;
|
||||
__toString = toHTML;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue