react-icons/fa#FaVoicemail TypeScript Examples

The following examples show how to use react-icons/fa#FaVoicemail. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.tsx    From webapis-playground with MIT License 5 votes vote down vote up
function WebSpeech() {
  if (!hasSupport()) {
    return <NotSupported />;
  }

  return (
    <div
      className="
        tw-flex
        tw-flex-col
        tw-items-start
      "
    >
      <div className="tw-space-x-4">
        <Button leftIcon={<FaVoicemail />} onClick={run()?.onStartListen}>
          Start listening
        </Button>
        <Button leftIcon={<FaStopCircle />} onClick={run()?.onStopListen}>
          Stop
        </Button>
      </div>

      <div
        className="
          tw-flex
          tw-flex-col
          tw-w-full
          tw-mt-6
          tw-overflow-hidden
          tw-border
        tw-border-gray-200
          tw-rounded-lg
        "
      >
        <div
          className="
            tw-p-4
            tw-prose
            tw-text-gray-600
          "
        >
          <span id="js-speech--interim" className="tw-font-bold" />
          <span id="js-speech--final" />
        </div>

        <span
          className="
            tw-p-4
            tw-border-t
            tw-border-gray-200
            tw-font-semibold
            tw-text-gray-600
          "
        >
          Transcript
        </span>
      </div>
    </div>
  );
}