Replies: 1 comment 12 replies
|
Did you consider using the <InputStructure
type="number"
css={{ marginBottom: '100' }}
inputCss={css.raw({ "&::-webkit-outer-spin-button": { WebkitAppearance: 'none' } })}
/> |
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
I would like to extend the existing style props functionality to include configurable aliases for the
cssprop so that style objects passed into other named props are picked up by the Panda CSS AST parserProblem Statement/Justification
I have a component API where I want to be able to expose style overrides for sub-elements as well as the main element. For example
As it works currently, there is no ergonomic or consistent way to make sure that the styles passed into the
inputCssprop are correctly parsed by Panda CSSProposed Solution or API
Add a new config option called
jsxCssPropAliases(open to alternative names) which accepts an array of strings. Any values get passed in here gets treated the same way as thecssprop does by the Panda CSS parser.generates the following css
Alternatives
We have considered simply using
css.rawwhen passing in style objects into these additional style props. The AST will parse these styles correctly, however the API for our consumers then becomes confusing and inconsistent, and we make it too easy to write styles that aren't picked up by the parser.Additional Information
No response
All reactions