diff --git a/docs/_includes/partials/sidebar.njk b/docs/_includes/partials/sidebar.njk index 5585216..72c5f58 100644 --- a/docs/_includes/partials/sidebar.njk +++ b/docs/_includes/partials/sidebar.njk @@ -55,7 +55,8 @@ href="/" class="h-8 flex items-center gap-2 rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0" > - Introduction + {% lucide "book-open" %} + Introduction
  • @@ -63,7 +64,8 @@ href="/installation" class="h-8 flex items-center gap-2 rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0" > - Installation + {% lucide "terminal" %} + Installation
  • @@ -71,6 +73,7 @@ href="/kitchen-sink" class="h-8 flex items-center gap-2 rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0" > + {% lucide "layout-dashboard" %} Kitchen sink
  • @@ -79,7 +82,8 @@ href="/theming" class="h-8 flex items-center gap-2 rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0" > - Theming + {% lucide "palette" %} + Theming
  • @@ -88,6 +92,7 @@ target="_blank" class="h-8 flex items-center gap-2 rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0" > + {% lucide "github" %} GitHub {% lucide "arrow-up-right", { "class": "text-muted-foreground size-3.5 ml-auto" } %} diff --git a/docs/components/skeleton.njk b/docs/components/skeleton.njk new file mode 100644 index 0000000..44f853a --- /dev/null +++ b/docs/components/skeleton.njk @@ -0,0 +1,51 @@ +--- +layout: layouts/component.njk +title: Skeleton +description: Used to show a placeholder while content is loading. +toc: + - label: Usage + id: usage + - label: Examples + id: examples + children: + - label: Card + id: example-card +--- + +{% from "macros/code_preview.njk" import code_preview %} +{% from "macros/code_block.njk" import code_block %} + +
    + {% lucide "circle-alert" %} +

    There is no dedicated skeleton component in Basecoat.

    +
    + +{% set code %}
    +
    +
    +
    +
    +
    +
    {% endset %} +{{ code_preview("skeleton", code | prettyHtml) }} + +

    Usage

    + +

    Simply use the animate-pulse class to create a skeleton.

    + +{{ code_block(code) }} + +

    Examples

    + +

    Card

    + +{% set code %}
    +
    +
    +
    +
    +
    +
    +
    +
    {% endset %} +{{ code_preview("skeleton-card", code | prettyHtml, "w-full max-w-md") }}