reablocks
Version:
Component library for React
49 lines (47 loc) • 1.18 kB
TypeScript
import { ListTheme } from '../ListTheme';
import { default as React, FC, InputHTMLAttributes, LegacyRef } from 'react';
export interface ListItemProps extends InputHTMLAttributes<HTMLDivElement> {
/**
* Whether the item is active or not.
*/
active?: boolean;
/**
* Whether the item is disabled or not.
*/
disabled?: boolean;
/**
* Disable the padding ( including gutters ).
*/
disablePadding?: boolean;
/**
* Disable the gutters ( left + right padding ).
*/
disableGutters?: boolean;
/**
* Whether the item data is dense and reduce the padding.
*/
dense?: boolean;
/**
* Class name for the content element.
*/
contentClassName?: string;
/**
* A start component for the list item.
*/
start?: React.ReactNode;
/**
* A end component for the list item.
*/
end?: React.ReactNode;
/**
* Theme for the List.
*/
theme?: ListTheme;
}
export interface ListItemRef {
/**
* Reference to the list item element.
*/
ref?: LegacyRef<HTMLDivElement>;
}
export declare const ListItem: FC<ListItemProps & ListItemRef>;