kirby-types
Version:
A collection of TypeScript types for the Kirby CMS
42 lines (39 loc) • 604 B
TypeScript
import type { KirbyBlock } from "./blocks";
export interface KirbyLayoutColumn {
id: string;
width:
| "1/1"
| "1/2"
| "1/3"
| "1/4"
| "1/6"
| "1/12"
| "2/2"
| "2/3"
| "2/4"
| "2/6"
| "2/12"
| "3/3"
| "3/4"
| "3/6"
| "3/12"
| "4/4"
| "4/6"
| "4/12"
| "5/6"
| "5/12"
| "6/6"
| "6/12"
| "7/12"
| "8/12"
| "9/12"
| "10/12"
| "11/12"
| "12/12";
blocks: KirbyBlock[];
}
export interface KirbyLayout {
id: string;
attrs: Record<string, any> | string[];
columns: KirbyLayoutColumn[];
}