honestjs
Version:
HonestJS - a modern web framework built on top of Hono
32 lines (31 loc) • 966 B
TypeScript
import type { PropsWithChildren } from 'hono/jsx';
export type HtmlAttributes = Record<string, string | number | boolean>;
export interface MetaTag {
property: string;
content: string;
name?: string;
prefix?: string;
}
export interface SiteData {
title: string;
description?: string;
image?: string;
url?: string;
locale?: string;
type?: string;
siteName?: string;
customMeta?: MetaTag[];
scripts?: (string | {
src: string;
async?: boolean;
defer?: boolean;
})[];
stylesheets?: string[];
favicon?: string;
twitterCard?: 'summary' | 'summary_large_image' | 'app' | 'player';
csp?: string;
htmlAttributes?: HtmlAttributes;
headAttributes?: HtmlAttributes;
bodyAttributes?: HtmlAttributes;
}
export declare const Layout: (props: PropsWithChildren<SiteData>) => import("hono/utils/html").HtmlEscapedString | Promise<import("hono/utils/html").HtmlEscapedString>;