Replies: 1 comment
-
@simpel Is what you're trying to achieve similar to Vanilla Extract recipes? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all! The code below does not work. But how to solve it? I want to achieve a Styles API, much like Mantine UI where the user can pass a object of defined slots that should be applied to the component.
styles
is the object in question here.My initial thought was to create a function in the .css.ts file but that does not work and all I get is "can't export objects, arrays, strings, numbers and null/undefined". I guess I should somehow use the addFunctionSerializer but I dont understand how.
The error
Usage
Beta Was this translation helpful? Give feedback.
All reactions