字号
颜色
onTextColorChange(event.currentTarget.value)}
type="color"
value={textColor}
/>
{textColor}
字形
{[
{ active: isBold, icon: Bold, id: "bold" as const, label: "粗体" },
{
active: isItalic,
icon: Italic,
id: "italic" as const,
label: "斜体",
},
{
active: isUnderlined,
icon: Underline,
id: "underlined" as const,
label: "下划线",
},
].map((item) => {
const MarkIcon = item.icon;
return (
);
})}