๐ Basic Usage
The simplest form with default title and a few links:
๐ Related Resources
View Code
<RelatedResources
links={[
{
href: '/docs/core-systems/related-resources-component',
label: '๐ Documentation',
type: 'primary'
},
{
href: '/docs/getting-started',
label: '๐ Getting Started',
type: 'secondary'
}
]}
/>๐จ Custom Title & Description
Customize the title and add a helpful description:
๐ฏ Next Steps
Continue your journey with these helpful resources and guides:
View Code
<RelatedResources
title="๐ฏ Next Steps"
description="Continue your journey with these helpful resources and guides:"
links={[
{
href: '/docs/core-systems',
label: 'Core Systems',
type: 'primary'
},
{
href: '/demos',
label: 'More Demos',
type: 'secondary'
},
{
href: '/docs/configuration',
label: 'Configuration',
type: 'outline'
}
]}
/>๐ External Links
Handle external links with proper security attributes:
๐ External Resources
Explore these external documentation and resources:
View Code
<RelatedResources
title="๐ External Resources"
description="Explore these external documentation and resources:"
links={[
{
href: 'https://docusaurus.io/docs',
label: 'Docusaurus Docs',
type: 'primary',
external: true
},
{
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub Repository',
type: 'secondary',
external: true
},
{
href: 'https://docusaurus.io/community',
label: 'Community',
type: 'outline',
external: true
}
]}
/>๐จ Button Type Variations
Compare the three button types: primary, secondary, and outline:
๐ญ Button Styles
Each button type serves a different purpose in the visual hierarchy:
๐ฏ Usage Guidelines:
- Primary: Main call-to-action, most important link
- Secondary: Supporting or alternative actions
- Outline: Subtle, less prominent links
โ๏ธ Technical Features
๐ง Component Features
- โ TypeScript Support: Full type safety
- โ Responsive Design: Works on all screen sizes
- โ Docusaurus Integration: Uses theme tokens
- โ Accessibility: Semantic HTML and ARIA
- โ External Link Safety: Proper rel attributes
๐จ Styling Features
- โ Card Layout: Clean, consistent design
- โ Button Groups: Organized link display
- โ Custom Classes: Extensible styling
- โ Theme Integration: Automatic dark/light mode
- โ Consistent Spacing: Docusaurus utilities
๐ก Common Use Cases
๐ Documentation Pages
- Link to related topics
- Navigate tutorial series
- Reference API documentation
- Access example code
๐ฎ Demo Pages
- Link to component docs
- Navigate to other demos
- Access source code
- View configuration guides
๐ External Resources
- Link to GitHub repositories
- Reference external docs
- Community resources
- Learning materials