@anguless/angulux/skeleton
Skeleton
import
import { SkeletonModule } from '@anguless/angulux/skeleton';Basic
A skeleton stands in for content that has not arrived yet.
<div style="width: 100%; display: grid; gap: 0.5rem"> <agl-skeleton /> <agl-skeleton width="10rem" /> <agl-skeleton width="5rem" borderRadius="16px" /> <agl-skeleton height="2rem" /></div>Shapes and sizes
Shape, size, width, height and borderRadius describe the space being held.
<agl-skeleton shape="circle" size="4rem" /><agl-skeleton width="10rem" height="4rem" /><agl-skeleton width="10rem" height="4rem" borderRadius="16px" />Animation
Setting animation to none holds the space without moving.
<agl-skeleton width="12rem" /><agl-skeleton width="12rem" animation="none" />API
Generated from the committed corpus, which check:corpus holds to the built library.
Skeleton
componentagl-skeletonSkeleton is a placeholder to display instead of the actual content.
| Input | Type | Default | Description |
|---|---|---|---|
| style deprecated — since v20.0.0, use `class` instead. | string | undefined | not documented | Class of the element. |
| shape | string | not documented | Shape of the element. |
| animation | string | not documented | Type of the animation. |
| border | string | undefined | not documented | Border radius of the element, defaults to value from theme. |
| size | string | undefined | not documented | Size of the skeleton. |
| width | string | not documented | Width of the element. |
| height | string | not documented | Height of the element. |
Inherited from BaseComponent
inherited| Input | Type | Default | Description |
|---|---|---|---|
| dt | Object | undefined | undefined | Defines scoped design tokens of the component. |
| unstyled | boolean | undefined | undefined | Indicates whether the component should be rendered without styles. |
| pt | PT | undefined | undefined | Used to pass attributes to DOM elements inside the component. Keys become attributes, and a key that names a DOM property is also assigned to that property. Values the browser would execute go through Angular's sanitizer first, as in a template binding: markup in `innerHTML`, `outerHTML` and `srcdoc`, and URLs in `href`, `src`, `action`, `formaction` and `xlink:href`. To write one of those unsanitized on purpose, pass a `DomSanitizer.bypassSecurityTrustHtml` or `bypassSecurityTrustUrl` value. An `on*` key must be a function, and any other value for it is ignored. Keys themselves are applied as given, so let data from users choose values, never keys. |
| pt | PassThroughOptions | undefined | undefined | Used to configure passthrough(pt) options of the component. |