UNPKG

create-plume-react-project

Version:
29 lines (24 loc) 580 B
import { PropsWithChildren, ReactNode } from 'react'; export type ListHeadProps = PropsWithChildren<{ title: string, isLoading?: boolean, className?: string, }>; export type ListProps = PropsWithChildren<{ isEmpty: boolean, isLoading?: boolean, showLoader?: boolean, className?: string, emptyStateLabel?: string, }>; export type ListItemAction = { onClick: () => void, icon: ReactNode, label: string, disabled?: boolean, }; export type ListItemProps = PropsWithChildren<{ className?: string, onClick?: () => void, actions?: ListItemAction[], }>;