duoyun-ui
Version:
A lightweight desktop UI component library, implemented using Gem
25 lines (24 loc) • 950 B
TypeScript
import { HTMLAttributes, RefAttributes } from 'react';
import { ForwardRefExoticComponent } from 'react';
import { DuoyunCardElement } from '../elements/card';
export * from '../elements/card';
export type DyCardProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCardElement> & {
avatar?: DuoyunCardElement['avatar'];
preview?: DuoyunCardElement['preview'];
header?: DuoyunCardElement['header'];
detail?: DuoyunCardElement['detail'];
detailRight?: DuoyunCardElement['detailRight'];
actions?: DuoyunCardElement['actions'];
crossorigin?: DuoyunCardElement['crossorigin'];
loading?: DuoyunCardElement['loading'];
};
export type DyCardExpose = {};
declare global {
namespace JSX {
interface IntrinsicElements {
'dy-card': DyCardProps;
}
}
}
export declare const DyCard: ForwardRefExoticComponent<Omit<DyCardProps, "ref"> & RefAttributes<DyCardExpose>>;
export default DyCard;