Table of Contents
Kbd
Use Kbd to style and format inline fragments of keyboard input.
How to use it
Default
Use Kbd to style and format <kbd>
elements.
Size
Kbd comes in small, medium, and large. By default, size is inherited from the parent element.
Configuration
- Name9.11.2•View source•View on npm
- Installnpm install @zendeskgarden/react-typography
- Depsnpm install react react-dom styled-components @zendeskgarden/react-theming
- Importimport { Kbd } from '@zendeskgarden/react-typography'
API
Kbd
Extends HTMLAttributes<HTMLElement>
Prop name | Type | Default | Description |
---|---|---|---|
size | 'small' | 'medium' | 'large' | 'inherit' | 'inherit' | Adjusts the font size. By default font size is inherited from the surrounding text. |