Add some safeguards to data and new button size

This commit is contained in:
Valtteri Karesto
2021-11-25 23:54:03 +02:00
parent 48706effc1
commit 6f183049d5
2 changed files with 14 additions and 7 deletions

View File

@@ -39,6 +39,12 @@ export const StyledButton = styled("button", {
},
variants: {
size: {
xs: {
borderRadius: "$sm",
height: "$5",
px: "$2",
fontSize: "$xs",
},
sm: {
borderRadius: "$sm",
height: "$7",