diff --git a/.changeset/brave-apples-give.md b/.changeset/brave-apples-give.md new file mode 100644 index 00000000000..4963ac426cc --- /dev/null +++ b/.changeset/brave-apples-give.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight-markdoc': minor +--- + +Adds support for the `icon` attribute in the `aside` tag, allowing the use of any of Starlight’s built-in icons. diff --git a/.changeset/five-flowers-flash.md b/.changeset/five-flowers-flash.md new file mode 100644 index 00000000000..6e5763bb3a7 --- /dev/null +++ b/.changeset/five-flowers-flash.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': minor +--- + +Adds support for using any of Starlight’s built-in icons in asides. diff --git a/docs/src/content/docs/components/asides.mdx b/docs/src/content/docs/components/asides.mdx index a28375b0d60..e3c0ac8ca3f 100644 --- a/docs/src/content/docs/components/asides.mdx +++ b/docs/src/content/docs/components/asides.mdx @@ -132,6 +132,36 @@ A warning aside *with* a custom title. +### Use custom icons + +Override the default aside icons by using the [`icon`](#icon) attribute set to the name of [one of Starlight’s built-in icons](/reference/icons/#all-icons). + + + +```mdx 'icon="starlight"' +import { Aside } from '@astrojs/starlight/components'; + + +``` + + + +```markdoc 'icon="starlight"' +{% aside type="tip" icon="starlight" %} +A warning aside *with* a custom icon. +{% /aside %} +``` + + + + + + + ## `