Provides simple animations used to indicate system activity (e.g., loading).
The q2-loading element has one or more properties that support text localization. Those properties are indicated by the localizable badge in the description.
countsNumeric adjustments are available for specific type and shape combinations.
These may impact the number of items, columns, and/or rows that display.
When shape="text", shape="detailed-item", or shape="label-value", the counts attribute determines the number of rows to display.
When shape="table", the counts attribute can be used in two ways:
counts="CxR" = Provides a skeleton table of C columns and R rows. The default value is `"5x5"counts="N" - Provides a skeleton table of N columns and 5 rows.When shape="form", the counts attribute can be used in two ways:
counts="CxR" - Provides a skeleton form of Ccolumns andRrows of fields. The default value is"1x1"`.counts="N" - Provides a skeleton form of N fields stacked in single columns.hideFromScreenReadershide-from-screen-readersHides the loading element from screen readers.
inlineStyles the component to have a height and width of 1em, making it easy to place alongside text.
labelThe label that is associated with the component. This is not displayed visually but is presented by screen readers.
modifiersVisual adjustments available to specific type and shape combinations, written as a hyphen (-) separated string.
Supported values depend on the type and shape selected, and are listed in detail in the shape sections above.
shapeThe specific visual presentation of a loading element type.
// when type="spinner"
type ShapeValues = "half-circle";
// when type="skeleton"
type ShapeValues = "circle | "rectangle" | "text" | "table" | "field" | "form" | "detailed-item" | "label-value";typeThe type of loading element to display.
This component uses other components in the Tecton library, including:
Other components in the Tecton library use this component, including:
q2-btnq2-data-tableq2-file-pickerInitial Release
The following CSS variables are available to override the default theme styles of the q2-loadingcomponent.