Schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schema.encore.de/headline.schema.json",
"title": "Headline",
"description": "Headline",
"allOf": [
{
"type": "object",
"properties": {
"highlight": {
"title": "Highlight?",
"description": "Highlight the headline?",
"type": "boolean",
"default": false
},
"animation": {
"title": "Animated?",
"description": "Animate the headline?",
"type": "boolean",
"default": false
},
"switchOrder": {
"type": "boolean",
"title": "Switch order?",
"description": "Switch order of headline and subheadline",
"default": false
}
}
},
{
"$ref": "http://schema.kickstartds.com/base/headline.schema.json"
}
]
}
Generated Types:
import type {HeadlineProps} from "@kickstartds/base/lib/headline/typing";
/**
* Headline
*/
export type HeadlineProps = {
highlight?: Highlight;
animation?: Animated;
switchOrder?: SwitchOrder;
} & HeadlineProps;
/**
* Highlight the headline?
*/
export type Highlight = boolean;
/**
* Animate the headline?
*/
export type Animated = boolean;
/**
* Switch order of headline and subheadline
*/
export type SwitchOrder = boolean;
Schema:
{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://schema.encore.de/headline.schema.json", "title": "Headline", "description": "Headline", "allOf": [ { "type": "object", "properties": { "highlight": { "title": "Highlight?", "description": "Highlight the headline?", "type": "boolean", "default": false }, "animation": { "title": "Animated?", "description": "Animate the headline?", "type": "boolean", "default": false }, "switchOrder": { "type": "boolean", "title": "Switch order?", "description": "Switch order of headline and subheadline", "default": false } } }, { "$ref": "http://schema.kickstartds.com/base/headline.schema.json" } ] }Generated Types: