@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
27 lines • 804 B
text/typescript
import { DivProps } from "../../types/index.mjs";
import { ReactNode } from "react";
//#region src/awesome/CodeShowcase/type.d.ts
interface CodeShowcaseItem {
/** The snippet shown on the left. Keep it short enough to read without scrolling. */
code: string;
key: string;
label: ReactNode;
/** @default 'tsx' */
language?: string;
/** The live render of the snippet, shown on the right. */
preview: ReactNode;
}
interface CodeShowcaseProps extends Omit<DivProps, 'onChange'> {
activeKey?: string;
defaultActiveKey?: string;
items: CodeShowcaseItem[];
/**
* Minimum height of both panes in pixels.
* @default 300
*/
minHeight?: number;
onChange?: (key: string) => void;
}
//#endregion
export { CodeShowcaseItem, CodeShowcaseProps };
//# sourceMappingURL=type.d.mts.map