Boolean
$autocomplete-disable-everything: false !default;
Boolean
$autocomplete-disable-clear-button: false !default;
Boolean
$autocomplete-disable-clear-button-display-none-query: false !default;
Boolean
$autocomplete-disable-dropdown-button: false !default;
Boolean
$autocomplete-disable-circular-progress: false !default;
Boolean
$autocomplete-disable-text-overflow-ellipsis: false !default;
Boolean
$autocomplete-disable-inline-chips: chip.$disable-everything !default;
Number
$autocomplete-inline-min-width: 5rem !default;
Number
$autocomplete-inline-chips-gap: icon.get-var(spacing) !default;
Number
$autocomplete-inline-outlined-vertical-padding: calc(
(text-field.get-var(height) - chip.get-var(height)) / 2 -
text-field.$border-width
) !default;
Number
$autocomplete-inline-input-leading-padding: chip.get-var(horizontal-padding) !default;
Number
$autocomplete-button-size: button.$icon-small-size !default;
Number
$autocomplete-circular-progress-size: button.$icon-small-size !default;
Number
$autocomplete-addon-gap: text-field.$addon-gap !default;
Number
$autocomplete-addon-spacing: text-field.get-var(addon-spacing) !default;
Number
$autocomplete-clear-button-size: calc(button.get-var(icon-font-size) * 2) !default;
Number
$autocomplete-dropdown-button-size: calc(button.get-var(icon-font-size) * 2) !default;
List
$autocomplete-variables: (
clear-button-size,
dropdown-button-size,
circular-progress-size,
inline-gap,
inline-min-width,
addon-gap,
gap-count,
addon-spacing
);
mixin
@mixin set-var($name, $value) { … }
mixin
@mixin use-var($property, $name: $property, $fallback: null) { … }
mixin
@mixin variables { … }
mixin
@mixin styles($disable-layer: false) { … }
function
@function get-var($name, $fallback: null) { … }
String
Set to true
to disable all the styles
Set to true
to disable the clear button styles
The default behavior for the clear button is to become visible only when:
Set this to true
to always show the clear button unless the
disableClearButton
was enabled on the Autocomplete
.
Set to true
to disable the dropdown button styles
Set to true
to disable the circular progress styles
Set to true
to disable setting text-overflow: ellipsis
on the input
Set to true
to disable the inline chip styles
This is the min width for the input when there are inline chips. This causes the input to wrap to the next line.
The amount of spacing between each inline chip
The vertical padding to apply to the text field when using inline chips and the outline theme. This is used so that the chips and floating label look nice.
The amount of padding to apply to the text field when there is at least one chip visible. The default behavior makes it so the text in the input matches with a chip if they were stacked.
Updates all the icon button sizes that appear within the autocomplete to use this new size
The size of the circular progress and used to generate the correct padding for all the inline addons
The amount of gap between the circular progress, clear button, and dropdown button (when they exist).
The spacing between the input and the circular progress/clear button/dropdown button addons.
The size of the clear button and used to generate the correct padding for all the inline addons
The size of the dropdown button and used to generate the correct padding for all the inline addons
The available configurable css variables and mostly used internally for the
get-var
, set-var
, and use-var
utils.
The supported variable name
The value to set the variable to. Supports null
which will just be a no-op.
The css property to apply the variable to
The supported variable name
An optional fallback value if the variable has not been set
Conditionally applies the css variables based on feature flags
Generates all the styles for the Autocomplete
components based on feature flags.
Set this to true
to disable the layer behavior
a var()
statement
The supported variable name
An optional fallback value