Shape

Overflow child with hidden child.

Install and import

Default

Add w and h to set size of shape.

Border radius

Add borderRadius from theme or what you want.

Shape

Set shape prop to square

… or set it to circle.

also, using shape with unequal sizes will match the biggest value between width / height.

Properties

NameType(s)DefaultRequired
children
node
h
string | number
shape
square
circle
w
string | number

Dependencies

Peer dependencies