@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
26 lines (25 loc) • 874 B
TypeScript
import { default as React, FunctionComponent, ReactNode } from 'react';
import { BasicComponent } from '../../utils/typings';
import { NoticeBarAlign } from './types';
export interface NoticeBarProps extends BasicComponent {
align: NoticeBarAlign;
direction: string;
list: any;
duration: number;
height: number;
content: string;
closeable: boolean;
wrap: boolean;
leftIcon: ReactNode;
rightIcon: ReactNode;
right: ReactNode;
delay: string | number;
scrollable: boolean | null;
speed: number;
close?: (event: any) => void;
click?: (event: any) => void;
onClose?: (event: any) => void;
onClick?: (event: any) => void;
onItemClick?: (event: any, value: any) => void;
}
export declare const NoticeBar: FunctionComponent<Partial<NoticeBarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;