styled components custom behavior

This commit is contained in:
tristan 2023-12-31 03:41:46 +00:00
parent 8ee2707ce6
commit 9d0d54c2e4
3 changed files with 22 additions and 5 deletions

View file

@ -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: {