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";
|
||||
|
||||
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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user