Files
personal-site/src/components/Label.astro
T

7 lines
274 B
Plaintext

---
interface Props { amber?: boolean; accent?: boolean; id?: string; }
const { amber, accent, ...rest } = Astro.props;
---
<div class:list={['font-mono text-[11px] tracking-[0.08em]', amber ? 'text-amber' : accent ? 'text-accent' : 'text-muted']} {...rest}><slot /></div>