Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mintlify/components/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Update component is designed for changelog pages and release notes. It displays dated entries with labels, optional tags, descriptions, and rich content. Each update supports anchor links for easy sharing.Basic Usage
Props
Unique identifier for the update. Used for:
- Anchor links (URL hash navigation)
- Headings registration in table of contents
- RSS feed item identification
"v2.0.0", "2024-05-15", "may-update"The primary label displayed for this update. Typically a date, version number, or release name.Example:
"May 15, 2024", "v2.0.0", "Spring Release"Controls whether the update is rendered. When
false, the component returns null. Used for filtering updates based on tags or date ranges.The main content of the update. Typically includes headings, paragraphs, lists, images, or any Markdown/MDX content.
Optional short description or summary of the update. Displayed below the tags in a secondary text style.
Array of tags to categorize the update. Common tags:
"New", "Improvement", "Fix", "Breaking Change", "Deprecated".Tags are automatically deduplicated and trimmed.Custom RSS feed metadata for this update. If not provided, defaults to the main
label and description.Additional CSS classes to apply to the update container.
Accessible label for the anchor link icon.
Callback fired when the update registers itself in the table of contents. Internal use for navigation features.
Callback fired when the update unmounts and removes itself from table of contents.
Callback fired when the anchor link is copied to clipboard. Useful for analytics or user feedback.
Internal prop indicating whether the update is within a proper context provider. Enables heading registration features.
Examples
Simple Update
With Tags
With Description
Rich Content
Changelog Page Pattern
With RSS Metadata
Conditional Visibility
Layout
The Update component uses a responsive two-column layout: Desktop (lg breakpoint and above):- Left column (160px fixed): Label, tags, and description
- Right column (flexible): Main content
- Left column is sticky on scroll
- Stacked layout (single column)
- Label and tags on top
- Content below
Features
Anchor Links
Each update includes an anchor link functionality:- Hover over the label to reveal the link icon
- Click the label to copy the anchor URL to clipboard
- Updates the browser URL hash
- Smooth scroll to update on page load if URL hash matches
Tag Management
Tags are automatically:- Deduplicated (duplicates removed)
- Trimmed (whitespace removed)
- Filtered (empty strings removed)
Sticky Label
On desktop, the label column is sticky:- Remains visible while scrolling through long content
- Respects scroll margin top CSS variable (
--scroll-mt) - Provides better context for long updates
Visual Hierarchy
The component provides clear visual hierarchy:- Label: Primary color on light background, prominent and clickable
- Tags: Secondary color, medium font weight
- Description: Secondary color, regular weight
- Content: Full prose styling with proper spacing
Dark Mode
Full dark mode support with:- Adjusted background colors
- Proper text contrast
- Theme-appropriate shadows
- Smooth transitions
Accessibility
The Update component includes:- Proper
aria-labelfor anchor links - Semantic HTML structure
- Keyboard navigation support
- Focus visible states
- Descriptive link text
Common Tag Patterns
Consistent tagging helps users quickly identify update types:- New: Brand new features or capabilities
- Improvement: Enhancements to existing features
- Fix: Bug fixes and corrections
- Breaking Change: Changes that require user action
- Deprecated: Features marked for future removal
- Security: Security-related updates
- Performance: Performance improvements
- Documentation: Documentation updates
Best Practices
Use consistent date formats in labels across all updates (e.g., “May 15, 2024” or “2024-05-15”) for better scanability.
Keep descriptions concise (1-2 sentences). They should summarize the update at a glance. Detailed information goes in the content.
Always provide the
isVisible prop. This is required for the component to render and enables filtering functionality.Styling
The Update component:- Uses responsive flex layout
- Includes proper spacing and padding
- Applies prose styling to content
- Supports custom className for additional styling
- Respects system scroll margin top for sticky positioning