1.0.4 • Published 11 months ago

google-fonts-dropdown v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

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;
1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago