devsandbox 0.11.1

Manage devcontainer-style sandboxes on docker, podman, or Apple container — many throwaway instances per repo from one TOML config.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
interface Props {
  variant?: 'note' | 'tip' | 'warning';
  title?: string;
}

const { variant = 'note', title } = Astro.props;
const defaults = { note: 'Note', tip: 'Tip', warning: 'Warning' } as const;
const glyph = { note: 'i', tip: '✓', warning: '!' } as const;
---

<aside class={`callout callout-${variant}`} aria-label={title ?? defaults[variant]}>
  <div class="callout-title">
    <span class="callout-icon" aria-hidden="true">{glyph[variant]}</span>
    {title ?? defaults[variant]}
  </div>
  <div class="callout-body"><slot /></div>
</aside>