Border Radius
The predefined keyword values are as follows:
none
: translates to 0sm
: translates to 2pxbase
or md
: translates to 4pxlg
: translates to 8pxxl
: translates to 12px2xl
: translates to 16px3xl
: translates to 24pxfull
or max
: translates to 9999pxTo import the Button, Flex, and Box components:
Examples
Button with LeftRadius="0", creating no border radius on left, but default settings on right.
Button with TopRadius="0", creating no border radius on top, but default settings on bottom.
Button with borderBottomRadius="0", creating no border radius on bottom, but default settings on top.
Diagonal split view
: You can use borderRadius property to create a visually interesting diagonal split view effect. By applying a large border radius to only two corners of a box and giving it a linear gradient, you can create a box that looks like it's been cut diagonally
Did you know?
Creative Idea No. 1
Code
Creative Idea No. 2
Code
Creative Idea No. 3
Code
copyright © 2023 IHeartComponents | evanmarie.com
created with love by the I♥️Components team using
Special thanks to Stefan Bohacek / Generative Placeholders.