UNPKG

wix-style-react

Version:
35 lines (29 loc) 801 B
import * as React from 'react'; export type ListItemSectionTypes = | 'whitespace' | 'divider' | 'title' | 'subheader'; export interface ListItemSectionProps { dataHook?: string; className?: string; type?: ListItemSectionTypes; title?: string; suffix?: React.ReactNode; ellipsis?: boolean; onClick?: React.MouseEventHandler<HTMLButtonElement>; } declare const ListItemSection: React.ComponentClass<ListItemSectionProps>; export const listItemSectionBuilder: (data: { id: string | number; className?: string; type?: ListItemSectionTypes; title?: string; suffix?: React.ReactNode; ellipsis?: boolean; }) => { id: string | number; overrideOptionStyle: true; value: (props?: Partial<ListItemSectionProps>) => React.ReactNode; }; export default ListItemSection;