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

The following examples show how to use @fortawesome/free-solid-svg-icons#faCamera. 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 bad-cards-game with GNU Affero General Public License v3.0 6 votes vote down vote up
library.add(
  faDotCircle,
  faCircle,
  faBars,
  faTimes,
  faInfoCircle,
  faTrophy,
  faShareSquare,
  faHeart,
  faInstagram,
  faTwitter,
  faGithub,
  faFacebook,
  faHandPointRight,
  faEdit,
  faSave,
  faCamera,
  faPlus,
  faMinus,
  faRandom,
);
Example #2
Source File: SampleWebPart.tsx    From spfx-fast-serve with MIT License 6 votes vote down vote up
public render(): React.ReactElement<ISampleWebPartProps> {
    return (
      <div className={styles.sampleWebPart}>
        <div className={styles.container}>
          <div className={styles.row}>
            <div className={styles.column}>
              <div>SPFx React controls Date Picker</div>
              <DateTimePicker label="DateTime Picker - 12h"
                dateConvention={DateConvention.DateTime}
                timeConvention={TimeConvention.Hours12} />
              <br />
              <PnPPlaceholder iconName="Edit" iconText="Workable" description="Workable" buttonLabel="Workable" />
              <br />
              <FontAwesomeIcon icon={faCamera} size="5x" />
              <br />
              <img src={logo} alt="SPFx logo" />
              <div className={styles.img} title="SPFx logo"></div>
              <div>{marked('I am using **markdown**.')}</div>
            </div>
          </div>
        </div>
      </div>
    );
  }
Example #3
Source File: ImagePicker.tsx    From frontend.ro with MIT License 5 votes vote down vote up
ImagePicker = ({
  src,
  inputId,
  inputName,
  onChange,
  alt = '',
  loading,
  disabled = false,
  className = '',
  showInput = false,
  acceptMimeTypes = IMAGES_MIME_TYPES,
}: Props) => {
  return (
    <label className={`${styles.ImagePicker} ${className} relative d-block`}>
      {!disabled && (
        <>
          {!loading && (
            <span className={`${styles.overlay} pin-full d-flex align-items-center justify-content-center`}>
              <FontAwesomeIcon width="48" icon={faCamera} className="text-white" />
            </span>
          )}
          {loading && (
            <span className={`${styles['spinner-overlay']} pin-full d-flex align-items-center justify-content-center`}>
              <FontAwesomeIcon width="48" icon={faSpinner} className="text-white rotate" />
            </span>
          )}
        </>
      )}
      <img src={src} alt={alt} />
      <input
        id={inputId}
        type="file"
        name={inputName}
        multiple={false}
        hidden={!showInput}
        disabled={disabled || loading}
        accept={acceptMimeTypes.join(',')}
        onChange={(e) => onChange(e.target.files[0])}
      />
    </label>
  );
}
Example #4
Source File: SampleWebPart.tsx    From spfx-fast-serve with MIT License 5 votes vote down vote up
library.add(faCamera);