We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Card component's configuration is
declare type CardConfig = { defaultRadius: Exclude<BentoSprinkles["borderRadius"], "circled">; };
It makes sense to also support a defaultPadding.
defaultPadding
Currently, it's implicitly 0.
0
The text was updated successfully, but these errors were encountered:
This one is tricky: should the defaultPadding refer to
padding
{ paddingX, paddingY }
{ paddingTop, paddingBottom, paddingLeft, paddingRight }
@gabro @veej
Sorry, something went wrong.
@agnese could you please add your opinion here?
I think it would be ok to have something like:
type PaddingKey = | "paddingX" | "paddingY" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingBottom"; type DefaultPadding = number | { [k in PaddingKey]?: 0 | BentoSprinkles["padding"] }
which is basically what Card uses (with the shortcut number for padding)
Card
number
Added in #682
marcopiii
No branches or pull requests
The Card component's configuration is
It makes sense to also support a
defaultPadding
.Currently, it's implicitly
0
.The text was updated successfully, but these errors were encountered: