duoyun-ui
Version:
A lightweight desktop UI component library, implemented using Gem
20 lines (19 loc) • 800 B
TypeScript
import { HTMLAttributes, RefAttributes } from 'react';
import { ForwardRefExoticComponent } from 'react';
import { DuoyunCodeBlockElement } from '../elements/code-block';
export * from '../elements/code-block';
export type DyCodeBlockProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCodeBlockElement> & {
codelang?: DuoyunCodeBlockElement['codelang'];
range?: DuoyunCodeBlockElement['range'];
highlight?: DuoyunCodeBlockElement['highlight'];
};
export type DyCodeBlockExpose = {};
declare global {
namespace JSX {
interface IntrinsicElements {
'dy-code-block': DyCodeBlockProps;
}
}
}
export declare const DyCodeBlock: ForwardRefExoticComponent<Omit<DyCodeBlockProps, "ref"> & RefAttributes<DyCodeBlockExpose>>;
export default DyCodeBlock;