configure()
Specification
Applies global layout configuration.
Layout is meant to be configured once, on the root level of your application.
Calling Layout.configure()
on your application's root mount is usually a good place:
Options
defaultUnit
defaultUnit
Value type |
|
Default value |
|
Description | Default measurement unit used as a suffix for numeric prop values. |
Example
defaultBehavior
defaultBehavior
Value type |
|
Default value |
|
Description | Breakpoint behavior used for responsive props without explicit behavior. |
Example
Template prop value is applied for md
breakpoint and down, as contrary to the default, mobile-first behavior, which applies the value from the given breakpoint and up.
breakpoints
breakpoints
Value type |
|
Default value | Bootstrap 4 breakpoints |
Description | A map of custom breakpoints. |
Type definition
Example
Make sure to explicitly provide a default breakpoint name when using custom breakpoints, so Atomic Layout knows when to apply props that have no breakpoint suffix.
defaultBreakpointName
defaultBreakpointName
Value type |
|
Default value |
|
Description | The name of a default breakpoint used for the props without an explicit breakpoint suffix. |
Example
Breakpoint-less padding
prop is now applied on the mobile
breakpoint by default.
Last updated