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.
counts
Numeric 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 and
Rrows of fields. The default value is
"1x1"`.counts="N"
- Provides a skeleton form of N
fields stacked in single columns.inline
Styles the component to have a height
and width
of 1em
, making it easy to place alongside text.
label
The label that is associated with the component. This is not displayed visually but is presented by screen readers.
modifiers
Visual 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.
shape
The 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";
type
The 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-btn
q2-data-table
q2-file-picker
Initial Release
The following CSS variables are available to override the default theme styles of the q2-loading
component.