Skip to content

Asides

Learn how to use asides to display important information, tips, warnings, and notes in your documentation with different types and styling options.

Asides are callout components that help highlight important information, tips, warnings, and notes in your documentation. They provide visual emphasis and help readers quickly identify different types of content. The Six Starlight Theme supports both markdown-based asides and component-based asides with consistent styling.

Prop NameProp TypeDescription
type'note' | 'tip' | 'caution' | 'danger'The type of aside to display. Determines the visual styling and icon.
childrenReactNodeThe content to display inside the aside.

Markdown asides use the :::type syntax and are perfect for simple content that doesn’t require complex formatting.

:::note
This is a note aside that provides general information or context to the reader.
:::
:::tip
This is a tip aside that offers helpful advice or best practices.
:::
:::caution
This is a caution aside that warns about potential issues or important considerations.
:::
:::danger
This is a danger aside that highlights critical warnings or potential problems.
:::

For more complex content or when you need programmatic control, you can use the Aside component from Starlight.

<Aside>
This is a basic aside component that displays information without any specific type styling.
</Aside>
<Aside type="note">
This aside uses the note type for general information.
</Aside>
<Aside type="tip">
This aside uses the tip type for helpful advice.
</Aside>
<Aside type="caution">
This aside uses the caution type for warnings.
</Aside>
<Aside type="danger">
This aside uses the danger type for critical information.
</Aside>

Asides can contain various types of content including code blocks, tables, and other markdown elements.

:::note
**Code Example:**
```js
const example = 'This is a code block inside an aside'
console.log(example)

Table Example:

FeatureStatusDescription
MarkdownFull markdown support
Code blocksSyntax highlighting
TablesResponsive design

Interactive Elements:

Click to expand This is a collapsible section within an aside that can contain additional information.

:::

:::note
**Code Example:**
```js
const example = 'This is a code block inside an aside'
console.log(example)

Table Example:

FeatureStatusDescription
MarkdownFull markdown support
Code blocksSyntax highlighting
TablesResponsive design

Interactive Elements:

Click to expand

This is a collapsible section within an aside that can contain additional information.

:::


  • Use note for general information and context
  • Use tip for helpful advice and best practices
  • Use caution for warnings about potential issues
  • Use danger for critical warnings and potential problems
  • Keep aside content concise and focused
  • Use asides sparingly to avoid overwhelming the reader
  • Ensure the content inside asides is relevant and valuable

  • Don’t overuse asides - Too many asides can make content harder to read
  • Don’t put essential information only in asides - Important content should be in the main text
  • Don’t use asides for navigation - Use proper navigation components instead
  • Don’t nest asides - This can create confusing visual hierarchies
  • Don’t use asides for decorative purposes - They should always serve a functional purpose