Skip to content

Receiving Props & Passing them to Twin.Macro #286

Discussion options

You must be logged in to vote

You'll just need to prefix the classes with tw before passing them through:

<Pattern
  classes={{
    wrapper: tw`absolute -left-2 z-10 lg:left-0 top-0 h-full bg-contain bg-line-left-md lg:bg-line-left bg-no-repeat xl:bg-line-left-md hidden sm:block`,
    img: tw`h-full`,
  }}
/>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thecodeclimber
Comment options

Answer selected by ben-rogerson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant