UNPKG

1.16 kBTypeScriptView Raw
1import React, { FunctionComponent, ReactNode, ComponentProps } from 'react';
2export interface TitleProps {
3 active?: boolean;
4 loading?: boolean;
5 disabled?: boolean;
6}
7export interface RightProps {
8 active?: boolean;
9}
10export interface CenterTextProps {
11 active?: boolean;
12 disabled?: boolean;
13}
14export interface LeftProps {
15 active?: boolean;
16}
17export interface ItemProps {
18 disabled?: boolean;
19}
20declare const Item: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, ItemProps, import("@storybook/theming").Theme>;
21export declare type LinkWrapperType = FunctionComponent;
22export interface ListItemProps extends Pick<ComponentProps<typeof Item>, Exclude<keyof ComponentProps<typeof Item>, 'href' | 'title'>> {
23 loading?: boolean;
24 left?: ReactNode;
25 title?: ReactNode;
26 center?: ReactNode;
27 right?: ReactNode;
28 active?: boolean;
29 disabled?: boolean;
30 href?: string;
31 LinkWrapper?: LinkWrapperType;
32}
33declare const ListItem: FunctionComponent<ListItemProps>;
34export default ListItem;