{"slug":"loading-spinner","name":"LoadingSpinner","category":"Feedback & Status","summary":"An indeterminate indicator for short waits.","status":"stable","since":"0.1.0","import":"import { LoadingSpinner } from '@elluzion/iv-ui';","usage":["`size` is the diameter in pixels; `color` defaults to the accent token.","It announces itself as a status; add text when the wait may be long.","For determinate work, use `Progress` instead."],"props":[{"name":"size","type":"number","default":"24","description":"Diameter in pixels.","required":false,"bindable":false},{"name":"color","type":"string","default":"'var(--iv_accent)'","description":"Stroke color; defaults to the current text color.","required":false,"bindable":false}],"events":[],"snippets":[],"types":[],"manual":[],"tokens":["--iv_spin-duration","--iv_spin-easing","--iv_spinner-border"],"cssHooks":["iv-spinner"],"accessibility":{"notes":["The spinner uses `role=\"status\"` with the label `Loading`.","It is decorative only in the sense of size; screen readers announce the status.","Rotation stops when `prefers-reduced-motion` is set."]},"related":[{"title":"Progress","summary":"Shows how much of a task is complete.","url":"/components/progress","kind":"Component"},{"title":"Skeleton","summary":"A pulsing placeholder that holds the shape of loading content.","url":"/components/skeleton","kind":"Component"},{"title":"Button","summary":"Triggers an action or submits a form.","url":"/components/button","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":"sizes","title":"Sizes","description":"Small, default, and large diameters.","code":"<script lang=\"ts\">\n\timport { LoadingSpinner } from '@elluzion/iv-ui';\n</script>\n\n<div class=\"row\">\n\t<LoadingSpinner size={14} />\n\t<LoadingSpinner />\n\t<LoadingSpinner size={36} />\n</div>\n\n<style>\n\t.row {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: var(--iv_spacing-lg);\n\t}\n</style>"},{"id":"color","title":"Color","description":"Pass any CSS color; the default is the brass accent.","code":"<script lang=\"ts\">\n\timport { LoadingSpinner } from '@elluzion/iv-ui';\n</script>\n\n<div class=\"row\">\n\t<LoadingSpinner size={22} color=\"var(--iv_success)\" />\n\t<LoadingSpinner size={22} color=\"var(--iv_error)\" />\n\t<LoadingSpinner size={22} color=\"var(--iv_foreground-dim)\" />\n</div>\n\n<style>\n\t.row {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: var(--iv_spacing-lg);\n\t}\n</style>"},{"id":"inline","title":"Inline","description":"The spinner sits on the text baseline inside a status row.","code":"<script lang=\"ts\">\n\timport { LoadingSpinner } from '@elluzion/iv-ui';\n</script>\n\n<p class=\"status\">\n\t<LoadingSpinner size={14} />\n\tSyncing the edge configuration…\n</p>\n\n<style>\n\t.status {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: var(--iv_spacing-sm);\n\t\tmargin: 0;\n\t\tfont-family: var(--iv_font-mono);\n\t\tfont-size: var(--iv_text-body);\n\t\tcolor: var(--iv_foreground-dim);\n\t}\n</style>"}],"markdown":"/components/loading-spinner.md","page":"/components/loading-spinner"}