Sensible defaults for heading
This commit is contained in:
parent
59e504957b
commit
d4da38ad0b
@ -3,15 +3,24 @@ import type { ComponentToHTMLArgs } from "@sealcode/jdd";
|
|||||||
import { Component, ComponentArguments, insert_nbsp } from "@sealcode/jdd";
|
import { Component, ComponentArguments, insert_nbsp } from "@sealcode/jdd";
|
||||||
|
|
||||||
const component_arguments = {
|
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([
|
font_size: new ComponentArguments.Enum([
|
||||||
"tiny",
|
"tiny",
|
||||||
"small",
|
"small",
|
||||||
"medium",
|
"medium",
|
||||||
"large",
|
"large",
|
||||||
"extra_large",
|
"extra_large",
|
||||||
]),
|
]).setExampleValues(["medium"]),
|
||||||
color: new ComponentArguments.Enum(["normal", "accent1", "accent2"]),
|
color: new ComponentArguments.Enum(["normal", "accent1", "accent2"]).setExampleValues(
|
||||||
|
["normal"]
|
||||||
|
),
|
||||||
title: new ComponentArguments.ShortText(),
|
title: new ComponentArguments.ShortText(),
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user