Skip to main content

Border Radius

Atomic props for controlling the border radius of an element.

Atomic PropsCSS Properties
rounded-{value} / rounded={value}border-radius: {value};
roundedFullborder-radius: 9999px;
roundedNoneborder-radius: none;
roundedSMborder-radius: 2px;
roundedMDborder-radius: 4px;
roundedLGborder-radius: 6px;
roundedXLborder-radius: 8px;
rounded2XLborder-radius: 12px;
rounded2XLborder-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