Description
Shadcn Font Picker is a font selection component for React, built on shadcn/ui's input and dropdown components and the Google Fonts API. You search for a font name, pick one from the list, and the component returns the chosen font to your code through an onChange handler, so you can apply it to text or a layout. The site shows variants for a default picker, a custom width, a custom height and a version without filters. Setup has several steps. You run the shadcn init command, add the button, command, dropdown-menu and popover components, install the react-window package and its types, and generate a Google Fonts API key in the Google Fonts API console, which you then put in your .env file. The component code goes in components/ui/font-picker.tsx, with a fonts.ts file in lib alongside it. The demo lets you try the picker before you set anything up, and the Star on GitHub button links to the project's repository. Because the font list comes from the Google Fonts API, you need your own key to load it.…
Highlights
- Font picker for React built on shadcn/ui
- Loads font names from the Google Fonts API
- Default, custom width, custom height and no-filter variants
- Returns the chosen font through onChange
- Open source on GitHub
Ratings & Reviews
No ratings yet
Be the first to rate shadcn-font-picker.
People also visit

registry.directory
A curated directory to discover, preview, and copy shadcn/ui registries
shadcn-font-picker FAQ
What is the Shadcn Font Picker?
A font selection component for React, built with shadcn/ui components and the Google Fonts API.
Do I need an API key?
Yes. You generate a Google Fonts API key in the Google Fonts API console and add it to your .env file.
What do I install?
The shadcn button, command, dropdown-menu and popover components, plus the react-window package and its types.
Where do the font names come from?
From the Google Fonts API, which the component uses to list fonts.
What are the best shadcn-font-picker alternatives?
Popular alternatives to shadcn-font-picker include shadcn-ui-customizer, Shadcn Labs and shover. See all shadcn-font-picker alternatives






