返回 presentation-ai
FontSelector.tsx
根目录 / src / components / notebook / presentation / components / theme / FontSelector.tsx
1 "use client";
2
3 import { FontPicker } from "@/components/ui/font-picker";
4 import { Label } from "@/components/ui/label";
5 interface FontSelectorProps {
6 value: string;
7 onChange: (value: string) => void;
8 label: string;
9 }
10
11 export function FontSelector({ value, onChange, label }: FontSelectorProps) {
12 return (
13 <div className="space-y-2">
14 <Label>{label}</Label>
15 <FontPicker value={onChange} defaultValue={value} autoLoad={true} />
16 </div>
17 );
18 }
19
19 lines Plain Text