{% 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", "data-keep-mobile-sidebar-open": "" }, popover_attrs={ "data-side": "top", "class": "w-[271px] md:w-[239px]" } ) %}

I hope you like Basecoat...

My name is Ronan and I made this (and other things). 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 new_link_attrs = { "hx-boost": "true", "hx-select": "#content", "hx-target": "#content", "hx-swap": "outerHTML", "data-new-link": "true" } %} {% set icon_home %}{% lucide "house" %}{% endset %} {% 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 %}GitHub{% endset %} {% set icon_discord %}Discord{% endset %} {% set icon_github %}GitHub{% endset %} {% set icon_discord %}Discord{% endset %} {% set menu = [ { type: "group", label: "Getting started", items: [ { label: "Introduction", url: "/introduction", icon: icon_info, attrs: link_attrs }, { label: "Installation", url: "/installation", icon: icon_square_terminal, attrs: link_attrs }, { label: "Kitchen sink", url: "/kitchen-sink", icon: icon_layout_dashboard, attrs: link_attrs }, { label: "GitHub", url: "https://github.com/hunvreus/basecoat", icon: icon_github, attrs: { "target": "_blank" } }, { label: "Discord", url: "https://basecoatui.com/chat", icon: icon_discord, attrs: { "target": "_blank" } } ]}, { type: 'group', label: 'Components', items: [ { label: "Accordion", url: "/components/accordion", attrs: link_attrs }, { label: "Alert", url: "/components/alert", attrs: link_attrs }, { label: "Alert Dialog", url: "/components/alert-dialog", attrs: link_attrs }, { label: "Avatar", url: "/components/avatar", attrs: link_attrs }, { label: "Badge", url: "/components/badge", attrs: link_attrs }, { label: "Breadcrumb", url: "/components/breadcrumb", attrs: link_attrs }, { label: "Button", url: "/components/button", attrs: link_attrs }, { label: "Button Group", url: "/components/button-group", attrs: new_link_attrs }, { label: "Card", url: "/components/card", attrs: link_attrs }, { label: "Checkbox", url: "/components/checkbox", attrs: link_attrs }, { label: "Command", url: "/components/command", attrs: new_link_attrs }, { label: "Combobox", url: "/components/combobox", attrs: link_attrs }, { label: "Dialog", url: "/components/dialog", attrs: link_attrs }, { label: "Dropdown Menu", url: "/components/dropdown-menu", attrs: link_attrs }, { label: "Empty", url: "/components/empty", attrs: new_link_attrs }, { label: "Field", url: "/components/field", attrs: new_link_attrs }, { label: "Form", url: "/components/form", attrs: link_attrs }, { label: "Input", url: "/components/input", attrs: link_attrs }, { label: "Input Group", url: "/components/input-group", attrs: new_link_attrs }, { label: "Item", url: "/components/item", attrs: new_link_attrs }, { label: "Kbd", url: "/components/kbd", attrs: new_link_attrs }, { label: "Label", url: "/components/label", attrs: link_attrs }, { label: "Pagination", url: "/components/pagination", attrs: link_attrs }, { label: "Popover", url: "/components/popover", attrs: link_attrs }, { label: "Progress", url: "/components/progress", attrs: new_link_attrs }, { label: "Radio Group", url: "/components/radio-group", attrs: link_attrs }, { label: "Select", url: "/components/select", attrs: link_attrs }, { label: "Sidebar", url: "/components/sidebar", attrs: link_attrs }, { label: "Skeleton", url: "/components/skeleton", attrs: link_attrs }, { label: "Slider", url: "/components/slider", attrs: link_attrs }, { label: "Spinner", url: "/components/spinner", attrs: new_link_attrs }, { label: "Switch", url: "/components/switch", attrs: link_attrs }, { label: "Table", url: "/components/table", attrs: link_attrs }, { label: "Tabs", url: "/components/tabs", attrs: link_attrs }, { label: "Textarea", url: "/components/textarea", attrs: link_attrs }, { label: "Theme Switcher", url: "/components/theme-switcher", attrs: link_attrs }, { label: "Toast", url: "/components/toast", attrs: link_attrs }, { label: "Tooltip", url: "/components/tooltip", attrs: link_attrs } ]} ] %} {{ sidebar( id="sidebar", label="Sidebar navigation", header=header, footer=footer, content_attrs={ "class": "scrollbar [&_[data-new-link]::after]:content-['New'] [&_[data-new-link]::after]:ml-auto [&_[data-new-link]::after]:text-xs [&_[data-new-link]::after]:font-medium [&_[data-new-link]::after]:bg-sidebar-primary [&_[data-new-link]::after]:text-sidebar-primary-foreground [&_[data-new-link]::after]:px-2 [&_[data-new-link]::after]:py-0.5 [&_[data-new-link]::after]:rounded-md" }, menu=menu ) }}