react-icons/bs#BsViewList TypeScript Examples

The following examples show how to use react-icons/bs#BsViewList. 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: ViewDisplayOptions.tsx    From game-store-monorepo-app with MIT License 6 votes vote down vote up
ViewDisplayOptions: React.FC<ViewDisplayOptionsProps> = ({ viewType, onViewTypeChange }) => {
  return (
    <div className="grid grid-cols-2 gap-2 items-center mb-5 overflow-y-hidden">
      <div>Display options:</div>
      <div>
        <ButtonGroup isFullWidth value={viewType} onChange={onViewTypeChange}>
          <ButtonGroup.Item value="Grid" className="w-1/2" size="small">
            <FiGrid size={16} />
          </ButtonGroup.Item>
          <ButtonGroup.Item value="List" className="w-1/2" size="small">
            <BsViewList size={16} />
          </ButtonGroup.Item>
        </ButtonGroup>
      </div>
    </div>
  );
}