Any prop alias is considered a responsive prop when its name is suffixed with a breakpoint name. Responsive props may also have an optional behavior specified.
To declare a responsive prop follow the next schema:
Any of Prop aliases can be used as a prop name part of a responsive prop.
An optional name of the configured breakpoint.
up
(Default) — Applies the given value from the specified breakpoint and up,down
— Applies the given value from the specified breakpoint and down,only
— Applies the given value only for the specified breakpoint.
{% hint style="success" %} Atomic layout is mobile-first. That means that by default responsive props are applied starting from the given breakpoint and up, unless different behavior is specified, or rewriting prop is met. {% endhint %}
- Default breakpoint behavior is
up
, - Default measurement unit for numeric prop values is
px
, - When not suffixed, any prop value is applied for
xs
breakpoint andup
.
gutter
— Setsgrid-gap
for all breakpoints (fromxs
and all the way up),marginVerticalMd
— Appliesmargin-top
andmargin-bottom
formd
breakpoint and up,placeItemsLgOnly
— Places the child items forlg
breakpoint only.