UNPKG

react-chrono

Version:
19 lines (18 loc) 960 B
import { FunctionComponent } from 'react'; import { ListItemModel } from './list.model'; /** * ListItem component displays a selectable/clickable item with title and description * @component * @param {Object} props - Component props * @param {string} props.title - The title text of the list item * @param {string} props.id - Unique identifier for the list item * @param {string} props.description - Optional description text below the title * @param {Theme} props.theme - Theme object for styling * @param {(id: string) => void} props.onClick - Click handler function * @param {boolean} props.active - Whether the item is in active state * @param {boolean} [props.selected=false] - Whether the item is selected (for checkbox mode) * @param {boolean} [props.selectable=false] - Whether the item shows a checkbox * @returns {JSX.Element} Rendered ListItem component */ declare const ListItem: FunctionComponent<ListItemModel>; export { ListItem };