UNPKG

1.26 kBTypeScriptView Raw
1import * as React from 'react';
2export interface SimpleListItemProps {
3 /** id for the item. */
4 itemId?: number | string;
5 /** Content rendered inside the SimpleList item */
6 children?: React.ReactNode;
7 /** Additional classes added to the SimpleList <li> */
8 className?: string;
9 /** Component type of the SimpleList item */
10 component?: 'button' | 'a';
11 /** Additional classes added to the SimpleList <a> or <button> */
12 componentClassName?: string;
13 /** Additional props added to the SimpleList <a> or <button> */
14 componentProps?: any;
15 /** Indicates if the link is current/highlighted */
16 isActive?: boolean;
17 /** @deprecated please use isActive instead */
18 isCurrent?: boolean;
19 /** OnClick callback for the SimpleList item */
20 onClick?: (event: React.MouseEvent | React.ChangeEvent) => void;
21 /** Type of button SimpleList item */
22 type?: 'button' | 'submit' | 'reset';
23 /** Default hyperlink location */
24 href?: string;
25}
26export declare class SimpleListItem extends React.Component<SimpleListItemProps> {
27 static displayName: string;
28 ref: React.RefObject<any>;
29 static defaultProps: SimpleListItemProps;
30 render(): JSX.Element;
31}
32//# sourceMappingURL=SimpleListItem.d.ts.map
\No newline at end of file