Border Radius
Atomic props for controlling the border radius of an element.
Atomic Props | CSS Properties |
---|---|
rounded-{value} / rounded={value} | border-radius: {value}; |
roundedFull | border-radius: 9999px; |
roundedNone | border-radius: none; |
roundedSM | border-radius: 2px; |
roundedMD | border-radius: 4px; |
roundedLG | border-radius: 6px; |
roundedXL | border-radius: 8px; |
rounded2XL | border-radius: 12px; |
rounded2XL | border-radius: 16px; |
roundedTop-{value} / roundedTop={value} | border-top-left-radius: {value}; border-top-right-radius: {value}; |
roundedRight-{value} / roundedRight={value} | border-top-right-radius: {value}; border-bottom-right-radius: {value}; |
roundedBottom-{value} / roundedBottom={value} | border-bottom-left-radius: {value}; border-bottom-right-radius: {value}; |
roundedLeft-{value} / roundedLeft={value} | border-top-left-radius: {value}; border-bottom-left-radius: {value}; |
roundedTopLeft-{value} / roundedTopLeft={value} | border-top-left-radius: {value}; |
roundedTopRight-{value} / roundedTopRight={value} | border-top-right-radius: {value}; |
roundedBottomLeft-{value} / roundedBottomLeft={value} | border-bottom-left-radius: {value}; |
roundedBottomRight-{value} / roundedBottomRight={value} | border-bottom-right-radius: {value}; |
Preset value
Use rounded{size}
to set rounded corner of an element.
Result
Loading...
Live Editor
Precise value
Use rounded-{size}
to set rounded corner of an element.
Result
Loading...
Live Editor
One sides corners
Use rounded{Top|Right|Bottom|Left}-{size}
to set one side corner of an element.
Result
Loading...
Live Editor
Single cornner
Use rounded{TopLeft|TopRight|BottomLeft|BottomRight}-{size}
to single corner of an element.
Result
Loading...
Live Editor
roundedFull
Use the roundedFull
props to create pills and circles.
Result
Loading...
Live Editor
roundedNone
Use the roundedNone
props to set none rounded.
Result
Loading...
Live Editor