Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

303 B
Raw Blame
---
import { nanoid } from 'nanoid';

type Props = {
  label: string;
};

const { label } = Astro.props;
const panelId = `tab-panel-${nanoid()}`;
---

<div
  data-tab-panel
  data-tab-label={label}
  id={panelId}
  role="tabpanel"
  aria-labelledby={`${panelId}-tab`}
  tabindex="0"
>
  <slot />
</div>