To use it, your docs page must be in .mdx format. Please change the format from .md to .mdx if necessary. All your existing markdown will still be supported without issue.
Import the Disclosure component like so:
Use the <Disclosure> component within your content like so:
You can nest the Disclosure component with the built-in Starlight <Tabs> component. This is helpful when displaying multiple related code snippets.
Simple hidden text
Just some text that does not need to be seen on first load