Add custom props to styled system? #5366
mikehuebner
started this conversation in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all!
Been using Native Base for a new project and we are looking to add some non-magic numbers for our zIndexes to the theme. I have been trying to find a way to extend the ability to pass in strings (similar to how colors are handled) and translate them to whatever values are set. Along with general Typescript support of course.
While this is perfectly achievable via the
useTheme
hook, it would be great to allow us our own custom keys for any prop we would like to use. Was wondering has anyone tried this or is there documentation on how to achieve this?Thanks all!
Beta Was this translation helpful? Give feedback.
All reactions