@fortawesome/free-solid-svg-icons#faPalette TypeScript Examples

The following examples show how to use @fortawesome/free-solid-svg-icons#faPalette. 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: IconLibrary.ts    From react-memory-game with MIT License 6 votes vote down vote up
library.add(
  faChevronLeft,
  faPlay,
  faPause,
  faUndo,
  faClock,
  faQuestionCircle,
  faTimes,
  faPalette,

  // Icons for the game
  faPoo,
  faAnchor,
  faMoon,
  faAppleAlt,
  faBell,
  faBible,
  faBomb,
  faBone,
  faCar,
  faCat,
  faChess,
  faSkull,
  faFeatherAlt,
  faFire,
  faHeart,
  faMusic,
)
Example #2
Source File: index.tsx    From pPhone2 with MIT License 6 votes vote down vote up
settingsDataList: ISettingsProps[] = [
    { id: 1, title: 'Mode Avion', img: faPlaneDeparture, imgType: 'fontAwesome-icon1', imgColor: '#fff', backround: '#f09a37', checkbox: true },
    { id: 2, title: 'Wifi', img: faWifi, imgType: 'fontAwesome-icon1', imgColor: '#fff', backround: '#3478f6 ', /*rightLabel: "test" */ },
    { id: 3, title: 'Bluetooth', img: faBluetooth, imgType: 'fontAwesome-icon2', imgColor: '#fff', backround: '#3478f6 '  },
    { id: 4, title: 'Cartes SIM', img: faSimCard, imgType: 'fontAwesome-icon4', imgColor: '#fff', backround: '#65c466'  },

    { id: 0, alt: true },
    { id: 5, title: 'Notifications', img: faBell, imgType: 'fontAwesome-icon2', imgColor: '#fff', backround: '#d70015'  },
    { id: 6, title: 'Sons & Vibrations', img: faVolumeUp, imgType: 'fontAwesome-icon3', imgColor: '#fff', backround: '#d70015'  },
    { id: 7, title: 'Fond d\'ecran', img: faPalette, imgType: 'fontAwesome-icon3', imgColor: '#fff', backround: '#70d7ff'  },
    { id: 8, title: 'Mode Nuit', img: faMoon, imgType: 'fontAwesome-icon3', imgColor: '#fff', backround: '#5756ce'  },
    { id: 9, title: 'Theme', img: faBrush, imgType: 'fontAwesome-icon4', imgColor: '#fff', backround: '#8944ab'  },

]
Example #3
Source File: FillColorParam.tsx    From ble with Apache License 2.0 6 votes vote down vote up
AngleParam: FunctionComponent<Props> = ({ params }) => {
	const { undoManager } = useStore();

	const onInput = (ev: ChangeEvent<HTMLInputElement>): void => {
		params.setFillColor(utils.string2hex(ev.target.value));
	};

	function onFocus(): void {
		undoManager.startGroup();
	}
	function onBlur(): void {
		undoManager.stopGroup();
	}

	return (
		<Container>
			<label>
				<FontAwesomeIcon icon={faPalette}/>
				&#32;
				fill color:
				&#32;
				<input
					type="color"
					value={utils.hex2string(params.fillColor)}
					onInput={onInput}
					onFocus={onFocus}
					onBlur={onBlur}
				/>
			</label>
		</Container>
	);
}