@cfxjs/react-ui
Version:
Modern and minimalist React UI library.
21 lines (20 loc) • 719 B
TypeScript
import React, { ReactNode } from 'react';
import UserLink from './user-link';
interface Props {
name: ReactNode | string;
src?: string;
text?: string;
className?: string;
altText?: string;
}
declare const defaultProps: {
className: string;
};
declare type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
export declare type UserProps = Props & typeof defaultProps & NativeAttrs;
declare type MemoUserComponent<P = {}> = React.NamedExoticComponent<P> & {
Link: typeof UserLink;
};
declare type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs;
declare const _default: MemoUserComponent<ComponentProps>;
export default _default;