{% if head %}{{ head | safe }}{% endif %} {% from "sidebar.njk" import sidebar %} {% from "popover.njk" import popover %} {% set footer %} {% set trigger %}
Ronan Berder @hunvreus
{% lucide "chevrons-up-down" %} {% endset %} {% call popover( trigger=trigger, trigger_attrs={"class": "btn-ghost p-2 h-12 w-full flex items-center justify-start"}, content_attrs={"data-side": "right", "data-align": "end", "class": "w-80"} ) %}

I hope you like Basecoat...

I made this (and other things) because I thought it'd be helpful to others. If you find it useful, please consider sponsoring me on GitHub or following me on X.

{% endcall %} {% endset %} {% set header %}
Basecoat v{{ pkg.version }}
{% lucide "search", { "class": "pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none" } %}
{% endset %} {% set link_attrs = { "hx-boost": "true", "hx-select": "#content", "hx-target": "#content", "hx-swap": "outerHTML" } %} {% set icon_info %}{% lucide "info" %}{% endset %} {% set icon_square_terminal %}{% lucide "square-terminal" %}{% endset %} {% set icon_layout_dashboard %}{% lucide "layout-dashboard" %}{% endset %} {% set icon_github %}{% lucide "github" %}{% endset %} {% set menu = [ { type: "group", label: "Getting started", items: [ { type: "item", label: "Introduction", url: "/", icon: icon_info, current: true, attrs: link_attrs }, { type: "item", label: "Installation", url: "/installation", icon: icon_square_terminal, attrs: link_attrs }, { type: "item", label: "Kitchen sink", url: "/kitchen-sink", icon: icon_layout_dashboard, attrs: link_attrs }, { type: "item", label: "GitHub", url: "https://github.com/hunvreus/basecoat", icon: icon_github, attrs: link_attrs } ]}, { type: 'group', label: 'Components', items: [ { type: "item", url: "/components/accordion", label: "Accordion", attrs: link_attrs }, { type: "item", url: "/components/alert", label: "Alert", attrs: link_attrs }, { type: "item", url: "/components/alert-dialog", label: "Alert Dialog", attrs: link_attrs }, { type: "item", url: "/components/avatar", label: "Avatar", attrs: link_attrs }, { type: "item", url: "/components/badge", label: "Badge", attrs: link_attrs }, { type: "item", url: "/components/breadcrumb", label: "Breadcrumb", attrs: link_attrs }, { type: "item", url: "/components/button", label: "Button", attrs: link_attrs }, { type: "item", url: "/components/card", label: "Card", attrs: link_attrs }, { type: "item", url: "/components/checkbox", label: "Checkbox", attrs: link_attrs }, { type: "item", url: "/components/combobox", label: "Combobox", attrs: link_attrs }, { type: "item", url: "/components/dialog", label: "Dialog", attrs: link_attrs }, { type: "item", url: "/components/dropdown-menu", label: "Dropdown Menu", attrs: link_attrs }, { type: "item", url: "/components/form", label: "Form", attrs: link_attrs }, { type: "item", url: "/components/input", label: "Input", attrs: link_attrs }, { type: "item", url: "/components/label", label: "Label", attrs: link_attrs }, { type: "item", url: "/components/pagination", label: "Pagination", attrs: link_attrs }, { type: "item", url: "/components/popover", label: "Popover", attrs: link_attrs }, { type: "item", url: "/components/radio-group", label: "Radio Group", attrs: link_attrs }, { type: "item", url: "/components/select", label: "Select", attrs: link_attrs }, { type: "item", url: "/components/skeleton", label: "Skeleton", attrs: link_attrs }, { type: "item", url: "/components/sidebar", label: "Sidebar", attrs: link_attrs }, { type: "item", url: "/components/slider", label: "Slider", attrs: link_attrs }, { type: "item", url: "/components/switch", label: "Switch", attrs: link_attrs }, { type: "item", url: "/components/table", label: "Table", attrs: link_attrs }, { type: "item", url: "/components/tabs", label: "Tabs", attrs: link_attrs }, { type: "item", url: "/components/textarea", label: "Textarea", attrs: link_attrs }, { type: "item", url: "/components/toast", label: "Toast", attrs: link_attrs }, { type: "item", url: "/components/tooltip", label: "Tooltip", attrs: link_attrs } ]} ] %} {{ sidebar( label="Sidebar navigation", header=header, footer=footer, menu=menu ) }}
{{ content | safe }}
{% from "toast.njk" import toaster %} {{ toaster() }}