react-demo-tab
Version:
Easily create React demo components
30 lines (26 loc) • 630 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
type DemoTabProps = {
/**
* Demo component.
*/
children: React.ReactNode;
/**
* Demo code.
*/
code: string;
/**
* Demo style.
*/
style?: string;
/**
* Code file extension for image to be displayed.
*/
codeExt?: 'jsx' | 'tsx';
/**
* Style file extension for image to be displayed.
*/
styleExt?: 'css' | 'scss';
};
declare const DemoTab: ({ code, style, codeExt, styleExt, children }: DemoTabProps) => react_jsx_runtime.JSX.Element;
export { DemoTab };
export type { DemoTabProps };