You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

google-fonts-dropdown

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-fonts-dropdown

A React component for selecting Google Fonts, compatible with React, Next.js, and Remix.

1.0.4
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
0
Weekly downloads
 
Created
Source

Google Fonts Dropdown

npm version License Downloads

** Google Fonts Dropdown ** A simple React component for selecting Google Fonts, compatible with React, Next.js, and Remix.

Features

  • Feature 1: Dropdown to select Google Fonts.
  • Feature 2: tailwind support.

Installation

To install the package, use npm or Yarn:

npm i google-fonts-dropdown
import React from "react";
import GoogleFontsDropdown from "google-fonts-dropdown";

const MyComponent: React.FC = () => {
  const handleFontSelect = () => {
    console.log("Selected Font:", font);
  };

  return (
    <form>
      <GoogleFontsDropdown
        apiKey="YOUR_GOOGLE_FONTS_API_KEY"
        className=""
        name="font"
        title="select a font"
        onFontSelect={handleFontSelect}
      />
      <button type="submit">Submit</button>
    </form>
  );
};

export default MyComponent;

Keywords

google-fonts-dropdown

FAQs

Package last updated on 21 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts