When using HTML, you’ll need to include the SVG icons “manually.” All the icons are available on Github. If you’d like to use different icons, Lucide is a great resource.
Custom properties
The following custom properties are available in the default theme:
---import Notice from "../../components/Notice.astro";---<Notice type="warning"> <p>This is a warning notice without a `title` prop.</p></Notice>
---import Notice from "../../components/Notice.astro";---<Notice title="Congratulation!" type="confirm"> <p>You've read this notice until the end!</p></Notice>
HTML examples
<aside class="notice"> <div class="notice_title"> <svg>[…]</svg> <strong>Default Notice</strong> </div> <p>This is the the default […].</p></aside>
<aside class="notice notice-info"> <div class="notice_title"> <svg>[…]</svg> <strong>Pro tip!</strong> </div> <p>Notice with the <code>.notice-info</code> modifier class.</p></aside>