Boolean$box-disable-everything: false !default;Set to true to disable all the styles
Boolean$box-disable-stacked: false !default;Set to true to disable all the styles for stacking items using
flex-direction: column and flex-direction: column-reverse.
Boolean$box-disable-reversed: false !default;Set to true to disable all the flex-direction: row-reverse and
flex-direction: column-reverse styles.
Boolean$box-disable-grid: false !default;Set to true to disable the css grid behavior for the box.
Boolean$box-disable-grid-columns: false !default;Set to true to disable the styles for the auto grid columns behavior and anything related to the $item-min-size.
Boolean$box-disable-grid-auto-rows: false !default;Set to true to disable the styles for the grid-auto-rows behavior.
Boolean$box-disable-phone-columns: false !default;Set to true to disable the styles for the phone columns variable.
Boolean$box-disable-tablet-columns: false !default;Set to true to disable the styles for the tablet columns variable.
Boolean$box-disable-desktop-columns: false !default;Set to true to disable the styles for the desktop columns variable.
Boolean$box-disable-large-desktop-columns: false !default;Set to true to disable the styles for the large desktop columns variable.
Boolean$box-disable-phone-min-item-size: false !default;Set to true to disable the styles for the phone grid min item variable.
Boolean$box-disable-tablet-min-item-size: false !default;Set to true to disable the styles for the tablet grid min item variable.
Boolean$box-disable-desktop-min-item-size: false !default;Set to true to disable the styles for the desktop grid min item size variable.
Boolean$box-disable-large-desktop-min-item-size: false !default;Set to true to disable the styles for the large desktop grid min item size variable
String$box-default-align-items: center !default;This is the default align-items property value to set if you don't like everything being centered by default. This value is always overridable using the alignItems prop on the Box component.
List$box-align-items: (start end stretch) !default;The additional class names to create for the align-items property. It creates classes like:
.rmd-box--align-start {
align-items: start;
}
List$box-justify-content: (
start center end stretch space-around space-between space-evenly
) !default;The additional class names to create for the justify-content property. It creates classes like:
.rmd-box--justify-start {
justify-content: start;
}
Number$box-gap: spacing.get-var(md) !default;The default flex and grid gap to apply between each item
Number$box-padding: $gap !default;The default padding to apply to the container.
Number$box-item-min-size: 8rem !default;The default minimum size for each grid item
Map$box-grids: () !default;This is used to create custom reusable grid configurations throughout the app. The custom grid can be used through the gridName prop.
@use "@react-md/core" with (
$box-grids: (
small: (
min: 5rem,
),
medium: (
min: 7rem,
padding: 2rem,
gap: 0.5rem,
),
)
);List$box-variables: (
gap,
column-gap,
row-gap,
padding,
padding-v,
padding-h,
item-min-size,
item-min-height,
columns,
row-max-height,
auto-rows-height,
fallback-media-columns,
phone-columns,
phone-item-min-size,
phone-item-min-height,
tablet-columns,
tablet-item-min-size,
tablet-item-min-height,
desktop-columns,
desktop-item-min-size,
desktop-item-min-height,
large-desktop-columns,
large-desktop-item-min-size,
large-desktop-item-min-height
);The available configurable css variables and mostly used internally for the
get-var, set-var, and use-var utils.
mixin@mixin set-var($name, $value) { … }| Name | Description | Type | Default Value |
|---|---|---|---|
$name | The supported variable name | String | — |
$value | The value to set the variable to. Supports | any | — |
mixin@mixin use-var($property, $name: $property, $fallback: null) { … }mixin@mixin custom-grid($min: null, $padding: null, $gap: null) { … }Generates the styles for a custom grid by updating the css variables.
@use "@react-md/core";
.container {
@include core.box-custom-grid($min: 20rem, $padding: 0.25rem, $gap: 0.725rem);
}mixin@mixin custom-grid-class($selector, $min: null, $padding: null, $gap: null) { … }Generates the styles for a custom grid by updating the css variables.
@use "@react-md/core";
.container {
@include core.box-custom-grid-class(
$selector: "&--custom",
$min: 20rem,
$padding: 0.25rem,
$gap: 0.725rem
);
}mixin@mixin variables { … }Conditionally applies the css variables based on feature flags
mixin@mixin styles($disable-layer: false) { … }Generates all the styles based on feature flags.
| Name | Description | Type | Default Value |
|---|---|---|---|
$disable-layer | Set this to | Boolean | false |
function@function get-var($name, $fallback: null) { … }Stringa var() statement
| Name | Description | Type | Default Value |
|---|---|---|---|
$name | The supported variable name | String | — |
$fallback | An optional fallback value | any | null |