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

The following examples show how to use @fortawesome/free-solid-svg-icons#faBomb. 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: HoppiParam.tsx    From ble with Apache License 2.0 6 votes vote down vote up
HoppiParam: FunctionComponent<Props> = ({ hoppi }) => {
	const onChangeHoppiType = (ev: ChangeEvent<HTMLSelectElement>): void => {
		if (ev.target.value === 'infinite') {
			hoppi.makeInfinite();
		}
		if (ev.target.value === 'finite') {
			hoppi.makeFinite();
		}
	};

	return (
		<Container>
			<FontAwesomeIcon icon={faBomb}/>
			<select value={hoppi.entityType} onChange={onChangeHoppiType}>
				<option value="infinite">Infinite</option>
				<option value="finite">Finite</option>
			</select>
			{InfiniteParams.is(hoppi.params) && (
				<InfiniteMagazineParam magazineParams={hoppi.params}/>
			)}
			{FiniteParams.is(hoppi.params) && (
				<FiniteMagazineParam magazineParams={hoppi.params}/>
			)}
		</Container>
	);
}