Inset

Ready

Inset layout applies positive spacing scale to its child nodes.

Props

NameDefaultDescription
space: '0rem' | '0.125rem' | '0.25rem' | '0.5rem' | '1rem' | '1.5rem' | '2rem' | '3rem' | '4rem' | '5rem''0rem'Applies the spacing scale to all sides.
horizontal: '0rem' | '0.125rem' | '0.25rem' | '0.5rem' | '1rem' | '1.5rem' | '2rem' | '3rem' | '4rem' | '5rem''0rem'Applies the spacing scale to the left and right sides.
vertical: '0rem' | '0.125rem' | '0.25rem' | '0.5rem' | '1rem' | '1.5rem' | '2rem' | '3rem' | '4rem' | '5rem''0rem'Applies the spacing scale to the top and bottom sides.
top: '0rem' | '0.125rem' | '0.25rem' | '0.5rem' | '1rem' | '1.5rem' | '2rem' | '3rem' | '4rem' | '5rem''0rem'Applies the spacing scale to the top side.
right: '0rem' | '0.125rem' | '0.25rem' | '0.5rem' | '1rem' | '1.5rem' | '2rem' | '3rem' | '4rem' | '5rem''0rem'Applies the spacing scale to the right side.
bottom: '0rem' | '0.125rem' | '0.25rem' | '0.5rem' | '1rem' | '1.5rem' | '2rem' | '3rem' | '4rem' | '5rem''0rem'Applies the spacing scale to the bottom side.
left: '0rem' | '0.125rem' | '0.25rem' | '0.5rem' | '1rem' | '1.5rem' | '2rem' | '3rem' | '4rem' | '5rem''0rem'Applies the spacing scale to the left side.
children: nodeCustom content inside the inset.

Examples

Basic usage

Custom sides