Sensible defaults for heading

This commit is contained in:
Kuba Orlik 2026-08-10 17:47:49 +02:00
parent 59e504957b
commit d4da38ad0b

View File

@ -3,15 +3,24 @@ import type { ComponentToHTMLArgs } from "@sealcode/jdd";
import { Component, ComponentArguments, insert_nbsp } from "@sealcode/jdd";
const component_arguments = {
level: new ComponentArguments.Enum(["h1", "h2", "h3", "h4", "h5", "h6"]),
level: new ComponentArguments.Enum([
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
]).setExampleValues(["h2"]),
font_size: new ComponentArguments.Enum([
"tiny",
"small",
"medium",
"large",
"extra_large",
]),
color: new ComponentArguments.Enum(["normal", "accent1", "accent2"]),
]).setExampleValues(["medium"]),
color: new ComponentArguments.Enum(["normal", "accent1", "accent2"]).setExampleValues(
["normal"]
),
title: new ComponentArguments.ShortText(),
} as const;