Boolean$text-field-disable-everything: base.$form-disable-everything !default;Set to true to disable the TextField styles
Boolean$text-field-disable-addon: $disable-everything !default;Set to true if the addon props will not be used with the TextField or
TextArea components or the visibilityIcon prop for the Password
component.
Boolean$text-field-disable-placeholder-ellipsis: false !default;Set to true if the ::placeholder text should not automatically ellipsis when there is text overflow.
Boolean$text-field-disable-inline: false !default;Set to true to disable the styles for allowing the TextField to be rendered inline instead of always spanning the full width of the container.
Boolean$text-field-disable-container-dense: false !default;Set to true to disable the TextFieldContainer dense styles.
Boolean$text-field-disable-underline-left: base.$form-disable-underlined-theme !default;Set to true if the underlined theme will not animate from the left.
NOTE: This would require updating the FORM_CONFIG.underlineDirection
value since this is the default.
Boolean$text-field-disable-underline-center: base.$form-disable-underlined-theme !default;Set to true if the underlined theme will not animate from the center.
Boolean$text-field-disable-underline-right: base.$form-disable-underlined-theme !default;Set to true if the underlined theme will not animate from the right.
Map$text-field-typography: map.merge(
typography.$base-font-styles,
map.merge(
typography.$body-1-styles,
(
font-size: 1em,
)
)
) !default;The default TextField typography
Number$text-field-height: 3rem !default;The default TextField height.
Number$text-field-dense-height: 2.5rem !default;The default TextField height when the dense prop is enabled.
Number$text-field-label-height: 3.5rem !default;The default TextField height when there is a label prop.
Number$text-field-label-dense-height: 3.25rem !default;The default TextField height when there is a label and dense prop.
Number$text-field-border-radius: null !default;The border-radius for a TextField.
Number$text-field-border-width: 1px !default;The border-width for a TextField.
Number$text-field-border-width-active: 2px !default;The border-width for a TextField while active or focused.
Number$text-field-filled-padding: calc(spacing.get-var(sm) * 1.5) !default;The amount of horizontal padding to apply to a TextField with the
theme="filled".
Number$text-field-outlined-padding: spacing.get-var(md) !default;The amount of horizontal padding to apply to a TextField with the
theme="outline".
Number$text-field-outlined-border-radius: border-radius.get-var(xs) !default;The border radius to apply to a TextField with the theme="outline".
Number$text-field-underlined-padding: null !default;The amount of horizontal padding to apply to a TextField with the
theme="underline".
Number$text-field-underlined-placeholder-height: 2.5rem !default;The amount of height to apply to a TextField while the
theme="underline" and a label has not been provided.
Set this to null to disable these styles.
Number$text-field-underlined-placeholder-padding-top: spacing.get-var(sm) !default;The amount of padding-top to apply to a TextField while the
theme="underline" and a label has not been provided.
This will be ignored if the $underlined-placeholder-height is
null.
Number$text-field-underlined-placeholder-addon-padding-top: spacing.get-var(xs) !default;The amount of padding-top to apply to addons in a TextField while the
theme="underline".
This will be ignored if the $underlined-placeholder-height is
null.
Number$text-field-underlined-label-padding-top: spacing.get-var(lg) !default;The amount of padding-top to apply to the TextFieldContainer while the
theme="underline" and a label was provided.
NOTE: This is the default height of the label with line-height
Number$text-field-underlined-label-left-offset: spacing.get-var(sm) !default;The position in the TextFieldContainer for a Label while the
theme="underline".
Number$text-field-color-min-width: 5rem !default;Set this to null if not using <TextField type="color" /> since this is used to apply a min-width to color inputs.
Number$text-field-addon-gap: spacing.get-var(xs) !default;The gap to apply between addon elements if multiple were provided.
i.e. leftAddon={<><FavoriteIcon /><CloseIcon /></>}
Number$text-field-addon-margin: spacing.get-var(sm) !default;The amount of margin to apply to addons when the TextField
theme="underline".
Number$text-field-addon-spacing: spacing.get-var(sm) !default;The amount of spacing between a TextField addon and the <input>
element.
Color$text-field-light-border-color: rgba(colors.$black, 0.12) !default;The border-color for a theme="outline" TextField in the light theme.
Color$text-field-dark-border-color: rgba(colors.$white, 0.5) !default;The border-color for a theme="outline" TextField in the dark theme.
Color$text-field-border-color: theme.get-default-color(
$light-border-color,
$dark-border-color
) !default;The default border-color for a theme="outline" TextField.
Color$text-field-light-hover-border-color: rgba(colors.$black, 0.87) !default;The border-color for a theme="outline" TextField in the light theme while hovering.
Color$text-field-dark-hover-border-color: rgba(colors.$white, 0.87) !default;The border-color for a theme="outline" TextField in the dark theme while hovering.
Color$text-field-hover-border-color: theme.get-default-color(
$light-hover-border-color,
$dark-hover-border-color
) !default;The default border-color for a theme="outline" TextField while hovering.
Color $text-field-light-filled-background-color: colors.$grey-100 !default;The background color for theme="filled" TextField in the light theme.
Color $text-field-dark-filled-background-color: #424242 !default;The background color for theme="filled" TextField in the dark theme.
Color $text-field-filled-background-color: theme.get-default-color(
$light-filled-background-color,
$dark-filled-background-color
) !default;The default background color for theme="filled" TextField.
List$text-field-variables: (
addon-top,
addon-spacing,
addon-margin-top,
addon-left-offset,
height,
base-height,
label-height,
dense-height,
dense-label-height,
padding-left,
padding-right,
padding-top,
border-color,
border-radius,
hover-border-color,
filled-color,
filled-padding,
outlined-padding,
outlined-border-radius,
underlined-padding
);The available configurable css variables and mostly used internally for the
get-var, set-var, and use-var utils.
In 6.4.0, added the following variables: base-height, label-height,
dense-height, dense-label-height, border-radius,
outlined-border-radius
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 use-light-theme { … }Applies the light the variables based on feature flags
mixin@mixin use-dark-theme { … }Applies the dark the variables based on feature flags
mixin@mixin variables { … }Conditionally applies the css variables based on feature flags
mixin@mixin container-styles($disable-layer: false) { … }Generates all the styles based on feature flags.
| Name | Description | Type | Default Value |
|---|---|---|---|
$disable-layer | Set this to | Boolean | false |
mixin@mixin text-field-styles($disable-layer: false) { … }Generates all the styles based on feature flags.
| Name | Description | Type | Default Value |
|---|---|---|---|
$disable-layer | Set this to | Boolean | false |
mixin@mixin addon-styles($disable-layer: false) { … }Generates all the styles based on feature flags.
| Name | Description | Type | Default Value |
|---|---|---|---|
$disable-layer | Set this to | Boolean | false |
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 |