Press ⌘+C to copy.
import { Kbd } from "@/shim-ui/kbd";
export default () => (
<p>
Press <Kbd>⌘+C</Kbd> to copy.
</p>
);Install
Use the CLI or copy the source code manually.
Command
Source code
pnpm dlx @kkga/shim add kbdimport { Kbd } from "@/shim-ui/kbd";
export default () => (
<>
<Kbd variant="surface">Ctrl+C</Kbd>
<Kbd variant="plain">Ctrl+C</Kbd>
</>
);import { Kbd } from "@/shim-ui/kbd";
export default () => (
<>
<Kbd size={1}>Ctrl+C</Kbd>
<Kbd size={2}>Ctrl+C</Kbd>
<Kbd size={3}>Ctrl+C</Kbd>
</>
);