mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs(loading): improve docs
This commit is contained in:
parent
a92da8d9a4
commit
7d8237a7a2
1 changed files with 12 additions and 0 deletions
|
@ -1,16 +1,28 @@
|
|||
---
|
||||
components: ["Loading"]
|
||||
---
|
||||
|
||||
<script>
|
||||
import { Loading } from "carbon-components-svelte";
|
||||
import Preview from "../../components/Preview.svelte";
|
||||
</script>
|
||||
|
||||
The `Loading` component provides a full-screen or inline loading indicator. It's ideal for showing progress during page loads or data fetching operations.
|
||||
|
||||
## Default (with overlay)
|
||||
|
||||
Display a loading indicator with a semi-transparent overlay that covers the entire viewport.
|
||||
|
||||
<FileSource src="/framed/Loading/Loading" />
|
||||
|
||||
## No overlay
|
||||
|
||||
Show a loading indicator without the overlay, allowing interaction with the underlying content.
|
||||
|
||||
<Loading withOverlay={false} />
|
||||
|
||||
## Small size
|
||||
|
||||
Display a more compact loading indicator.
|
||||
|
||||
<Loading withOverlay={false} small />
|
Loading…
Add table
Add a link
Reference in a new issue