Import all nix files in a directory tree.
Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/
dendrix.oeiuwq.com/Dendritic.html
dendritic
inputs
1---
2import type { HTMLAttributes } from 'astro/types';
3
4export interface Props {
5 /** Unique ID for the tab panel this item links to. */
6 id: string;
7 /** Mark this item as visible when the page loads. */
8 initial?: boolean;
9 /** Additional class names to apply to the `<li>` */
10 class?: string;
11}
12
13const { id, initial } = Astro.props;
14const linkAttributes: HTMLAttributes<'a'> = initial
15 ? { 'data-initial': 'true', 'aria-selected': 'true' }
16 : {};
17---
18
19<li class:list={Astro.props.class}>
20 <a href={'#' + id} class="tab-link" {...linkAttributes}>
21 <slot />
22 </a>
23</li>