Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
Astro
123456789101112131415---interface Props { type?: "note" | "tip" | "warning" title?: string}
const type = Astro.props.type ?? "note"const title = Astro.props.title ?? (type === "tip" ? "Tip" : type === "warning" ? "Warning" : "Note")---
<aside class={`callout callout-${type}`} aria-label={title}> <strong>{title}</strong> <div><slot /></div></aside>