Font pair (sans + mono) dropdown with preview and keyboard navigation
Font Switcher
Font pair (sans + mono) dropdown with preview and keyboard navigation
Same BEM classes and behavior as Astro, Svelte, and React.
Add this component
The command below includes <strong>Font Switcher</strong>—run it in your project directory to install this component (and the CSS if needed). No prompts.
Choose your package manager — click a tab to select, then copy the command.
npm pnpm yarn bun
bashbash
npx rizzo-css add FontSwitcher
bashbash
pnpm dlx rizzo-css add FontSwitcher
bashbash
npx rizzo-css add FontSwitcher
bashbash
bunx rizzo-css add FontSwitcher
Live examples
Vue
Usage
Usage
Full example for each framework (Astro, Vanilla, Svelte, Vue, React). Switch framework via View as or by clicking a Usage tab—both stay in sync.
Astro Vanilla Svelte Vue React
astroastro
---
import FontSwitcher from '../components/astro/FontSwitcher.astro';
---
<FontSwitcher label="Font" client:load />
htmlhtml
<!-- Rizzo CSS. Script runs on DOMContentLoaded for [data-font-switcher]. -->
<div class="font-switcher" data-font-switcher>...</div>