title: How to use a type from React for props of my own component?
body: <p>For my component I need to pass the <code>inputmode</code> from outside as <code>props</code>.
  The valid values for <code>&lt;input inputMode=&lt;valid values&gt;&gt;</code> are defined in the React types (node_modules@types\react\index.d.ts) as</p>
  <pre><code>interface HTMLAttributes&lt;T&gt; extends AriaAttributes, DOMAttributes&lt;T&gt; {
      [..]
      // Living Standard
      /**
       * Hints at the type of data that might be entered by the user while editing the element or its contents
       * @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
       */
      inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
      [..]
  }
  </code></pre>
  <p>Any way to reference this list of possible values in my <code>Props</code> interface without copying all the possible values, which might be outdated in the future?</p>
  <pre><code>interface Props {
    inputmode: &lt;how to use the allowed values defined in the React types&gt;;
  }
  </code></pre>