Files
rustycms/@types/Contentful_Headline.ts

33 lines
750 B
TypeScript

import type { CF_ContentType } from "src/@types/Contentful_ContentType.enum";
import type { CF_ComponentLayout } from "src/@types/Contentful_Layout";
export type CF_Component_Headline_Align =
| "left"
| "center"
| "right"
export type CF_Component_Headline_Tag =
| "h1"
| "h2"
| "h3"
| "h4"
| "h5"
| "h6"
export type CF_alignTextClasses =
| "text-left"
| "text-center"
| "text-right"
export interface CF_ComponentHeadline {
internal: string;
text: string;
tag: CF_Component_Headline_Tag,
layout: CF_ComponentLayout
align?: CF_Component_Headline_Align
}
export interface CF_ComponentHeadlineSkeleton {
contentTypeId: CF_ContentType.headline
fields: CF_ComponentHeadline
}