{"slug":"skeleton","name":"Skeleton","category":"Feedback & Status","summary":"A pulsing placeholder that holds the shape of loading content.","status":"stable","since":"0.2.0","import":"import { Skeleton } from '@elluzion/iv-ui';","usage":["`shape` picks rect, line, or circle; `width` and `height` accept numbers or CSS lengths.","Match the dimensions of the content that replaces it to avoid layout shift.","Combine several skeletons to sketch a list or card while data loads."],"props":[{"name":"shape","type":"'rect' | 'line' | 'circle'","default":"'rect'","description":"Visual shape of the placeholder.","required":false,"bindable":false},{"name":"width","type":"string | number","default":null,"description":"Width; numbers are treated as pixels.","required":false,"bindable":false},{"name":"height","type":"string | number","default":null,"description":"Height; numbers are treated as pixels.","required":false,"bindable":false},{"name":"className","type":"string","default":"''","description":"Extra classes merged onto the root element.","required":false,"bindable":false}],"events":[],"snippets":[],"types":[],"manual":[],"tokens":["--iv_avatar-md","--iv_ease-in-out","--iv_radius-sm","--iv_surface-elevated"],"cssHooks":["iv-circle","iv-line","iv-rect","iv-skeleton"],"accessibility":{"notes":["Skeletons are hidden from assistive technology.","The pulse stops when `prefers-reduced-motion` is set.","Announce loading elsewhere, for example with `role=\"status\"` or an `Alert`."]},"related":[{"title":"LoadingSpinner","summary":"An indeterminate indicator for short waits.","url":"/components/loading-spinner","kind":"Component"},{"title":"Progress","summary":"Shows how much of a task is complete.","url":"/components/progress","kind":"Component"},{"title":"Card","summary":"A bordered surface for grouped content and actions.","url":"/components/card","kind":"Component"},{"title":"EmptyState","summary":"Explains why an area has no content and offers the next step.","url":"/components/empty-state","kind":"Component"}],"examples":[{"id":"shapes","title":"Shapes","description":"Rectangle, text line, and circle placeholders.","code":"<script lang=\"ts\">\n\timport { Skeleton } from '@elluzion/iv-ui';\n</script>\n\n<div class=\"stack\">\n\t<Skeleton shape=\"rect\" height={72} />\n\t<Skeleton shape=\"line\" />\n\t<Skeleton shape=\"line\" width=\"70%\" />\n\t<Skeleton shape=\"circle\" />\n</div>\n\n<style>\n\t.stack {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: var(--iv_spacing-md);\n\t\twidth: 100%;\n\t\tmax-width: 320px;\n\t}\n</style>"},{"id":"card","title":"Card placeholder","description":"A composition that mirrors the final card layout.","code":"<script lang=\"ts\">\n\timport { Card, Skeleton } from '@elluzion/iv-ui';\n</script>\n\n<Card padding=\"lg\">\n\t<div class=\"head\">\n\t\t<Skeleton shape=\"circle\" width={32} height={32} />\n\t\t<div class=\"meta\">\n\t\t\t<Skeleton shape=\"line\" width=\"45%\" />\n\t\t\t<Skeleton shape=\"line\" width=\"30%\" />\n\t\t</div>\n\t</div>\n\t<Skeleton shape=\"line\" />\n\t<Skeleton shape=\"line\" width=\"85%\" />\n\t<Skeleton shape=\"line\" width=\"60%\" />\n</Card>\n\n<style>\n\t.head {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: var(--iv_spacing-md);\n\t\tmargin-bottom: var(--iv_spacing-lg);\n\t}\n\n\t.meta {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\t\tflex-direction: column;\n\t\tgap: var(--iv_spacing-xs);\n\t}\n</style>"}],"markdown":"/components/skeleton.md","page":"/components/skeleton"}