Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass along variant name as prop to createVariant'ed component #303

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

linddominic
Copy link

Description

If you have a component created as a variant you might need to access the 'variant` name inside of it! This fixes that.

Say you want to render components based the variant name, or something else.

Checklist

@linddominic linddominic force-pushed the add-variant-prop-to-restyle-component branch 2 times, most recently from 2c477af to b2d78dc Compare June 5, 2024 12:19
src/hooks/useRestyle.ts Outdated Show resolved Hide resolved
@linddominic linddominic force-pushed the add-variant-prop-to-restyle-component branch from 8e49157 to 3bc96c8 Compare June 5, 2024 16:23
@linddominic linddominic force-pushed the add-variant-prop-to-restyle-component branch from 3bc96c8 to 133116f Compare June 5, 2024 16:24
@linddominic linddominic requested a review from sbalay June 5, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants