@cn-ui/core
Version:
The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.
16 lines (15 loc) • 460 B
TypeScript
export interface TOCHeadingType {
/** heading 深度 */
depth: number;
/** 文字标题 */
text: string;
/** 跳转地址 */
slug: string;
}
export declare const TOCHeading: (props: {
heading: TOCHeadingType;
}) => import("solid-js").JSX.Element;
/** TOC 组件 */
export declare const TOC: import("solid-js").Component<import("@cn-ui/reactive").OriginComponentOutputType<{
headings: TOCHeadingType[];
}, HTMLElement, string>>;