UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

56 lines (55 loc) 1.36 kB
import { FlexboxProps } from "../Flex/type.mjs"; import "../Flex/index.mjs"; import { CSSProperties, ReactNode, Ref } from "react"; //#region src/List/type.d.ts interface ListItemProps extends Omit<FlexboxProps, 'title'> { actions?: ReactNode; active?: boolean; addon?: ReactNode; avatar?: ReactNode; classNames?: { actions?: string; container?: string; content?: string; date?: string; desc?: string; pin?: string; title?: string; }; date?: number; description?: ReactNode; key: string; loading?: boolean; onHoverChange?: (hover: boolean) => void; pin?: boolean; ref?: Ref<HTMLDivElement>; showAction?: boolean; styles?: { actions?: CSSProperties; container?: CSSProperties; content?: CSSProperties; date?: CSSProperties; desc?: CSSProperties; pin?: CSSProperties; title?: CSSProperties; }; title: ReactNode; } interface ListProps extends Omit<FlexboxProps, 'onClick'> { activeKey?: string; classNames?: { item?: string; } & ListItemProps['classNames']; items: ListItemProps[]; onClick?: (props: { item: ListItemProps; key: ListItemProps['key']; }) => void; ref?: Ref<HTMLDivElement>; styles?: { item?: CSSProperties; } & ListItemProps['styles']; } //#endregion export { ListItemProps, ListProps }; //# sourceMappingURL=type.d.mts.map