From 7ec9167aebf16a5ba5956b0947fbf018c4340bd8 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Thu, 10 Jul 2025 21:52:46 +0200 Subject: refactor: new font picker component --- apps/web/src/components/ui/font-picker.tsx | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 apps/web/src/components/ui/font-picker.tsx (limited to 'apps/web/src/components/ui') diff --git a/apps/web/src/components/ui/font-picker.tsx b/apps/web/src/components/ui/font-picker.tsx new file mode 100644 index 00000000..8ad57425 --- /dev/null +++ b/apps/web/src/components/ui/font-picker.tsx @@ -0,0 +1,35 @@ +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { FONT_OPTIONS, FontFamily } from "@/constants/font-constants"; + +interface FontPickerProps { + defaultValue?: FontFamily; + onValueChange?: (value: FontFamily) => void; + className?: string; +} + +export function FontPicker({ + defaultValue, + onValueChange, + className, +}: FontPickerProps) { + return ( + + ); +} -- cgit v1.3.1