/** * A collection of popular layouts and patterns made with CSS (https://csslayout.io) * (c) 2019 - 2020 Nguyen Huu Phuoc */ import React from 'react'; import { Helmet } from 'react-helmet'; import { Link } from 'react-router-dom'; import Heading from '../../components/Heading'; import DetailsLayout from '../../layouts/DetailsLayout'; import BrowserFrame from '../../placeholders/BrowserFrame'; interface ItemProps { action: string; keys: string; } const Item: React.FC = ({ action, keys }) => { return (
{action}
{keys}
); }; const Details: React.FC<{}> = () => { return (
We use the native kbd tag to display the keyboard shortcut.
⌘ + C
)} source={` ... `} />
We can use this pattern with the property list pattern to create shortkey preferences as following:
); }; export default Details;