What it does
Demonstrates emphasis combinations on Text and monospace InlineCode surfaces.
Tones align with the broader typography palette.
Composition and API
Nest InlineCode inside Text or headings sparingly.
Avoid deeply nested emphasis toggles.
Common use cases
- CLI snippets beside sentences.
- API parameter names in prose.
- Warnings with destructive tone.
- Highlighted beta labels.
Accessibility
Underline complements links elsewhere—avoid conflicting patterns.
Highlight should not be the only cue.
Next.js integration notes
Static docs can ship Inline-heavy paragraphs from MDX.
Ensure code tokens escape user-provided strings.
FAQ
Should InlineCode wrap keyboard keys?
Yes for monospace clarity; pair with Text emphasis when describing shortcuts.
Can InlineCode sit inside buttons?
Technically yes, but prefer plain spans inside buttons unless monospace is required.
Does destructive tone imply errors?
It applies rose text styling—reserve for risky actions or validation messaging.