react-icons/fi#FiFileText TypeScript Examples

The following examples show how to use react-icons/fi#FiFileText. 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 FileSystem() {
  if (!hasSupport()) {
    return <NotSupported />;
  }

  return (
    <div
      className="
        tw-flex
        tw-flex-col
       "
    >
      <div className="tw-space-x-4">
        <Button
          id="js-button--text"
          leftIcon={<FiFileText />}
          onClick={run.text}
        >
          Select a text file
        </Button>
        <Button
          id="js-button--image"
          leftIcon={<FiImage />}
          onClick={run.image}
        >
          Select an image file
        </Button>
      </div>

      <div
        id="js-api--filesystem"
        className="
          tw-hidden
          tw-flex-col
          tw-mt-4
          tw-overflow-hidden
          tw-border
        tw-border-gray-200
          tw-rounded-lg
        "
      >
        <p
          id="js-content--text"
          className="
            tw-p-4
            tw-prose
            tw-text-gray-600
          "
        ></p>

        <div id="js-content--image"></div>

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