@yuntijs/ui
Version:
☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps
31 lines (30 loc) • 848 B
TypeScript
import React, { ReactNode } from 'react';
import type { JsonViewProps } from 'react18-json-view';
import 'react18-json-view/src/dark.css';
import 'react18-json-view/src/style.css';
export { stringify } from 'react18-json-view';
export interface JsonViewerProps extends JsonViewProps {
/**
* @description The variant of the code block
* @default 'filled'
*/
variant?: 'filled' | 'outlined' | 'borderless';
fullFeatured?: boolean;
/**
* Only workded when fullFeatured=true
*/
title?: string;
/**
* Only workded when fullFeatured=true
*/
icon?: ReactNode;
/**
* The style of the json content
*/
contentStyle?: React.CSSProperties;
classNames?: {
header?: string;
content?: string;
};
}
export declare const JsonViewer: React.FC<JsonViewerProps>;