styled components

This commit is contained in:
tristan 2023-12-31 03:08:05 +00:00
parent 24cfbe8727
commit ff2f68c907
6 changed files with 118 additions and 7 deletions

View file

@ -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;
};