Empty State
<gstock-empty-state>
|
GstockEmptyState
API
Properties
| Name | Description | Reflects | Type | Default |
|---|---|---|---|---|
alt
|
Alternative text description of the image. |
string
|
-
|
|
header
|
Title that briefly describes the page to the user. |
string
|
-
|
|
description
|
Additional description text displayed below the header. |
string | undefined
|
-
|
|
headingLevel
|
The heading level of the header element (1–6). Defaults to 4. |
1 | 2 | 3 | 4 | 5 | 6
|
4
|
|
imageUrl
|
The url of image that will be shown above the title, fed directly into the src prop of an |
string | undefined
|
-
|
|
imageWidth
|
The width of the image in pixels. |
number | undefined
|
-
|
|
imageHeight
|
The height of the image in pixels. |
number | undefined
|
-
|
|
maxImageWidth
|
The maximum width of the image in pixels. |
number | undefined
|
-
|
|
maxImageHeight
|
The maximum height of the image in pixels. |
number | undefined
|
-
|
|
updateComplete
|
A read-only promise that resolves when the component has finished updating. |
Learn more about attributes and properties .
CSS Parts
| Name | Description |
|---|---|
base
|
The empty state’s base part. |
image
|
The empty state’s image. |
header
|
The empty state’s header. |
description
|
The empty state’s description. |
Learn more about CSS parts .