@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
24 lines (23 loc) • 1.03 kB
TypeScript
import type { ListVariant } from './ListContext';
import type { ItemContentProps } from './ItemContent';
import type { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
import type { IconIcon } from '../icon/Icon';
export type ItemActionIconPosition = 'left' | 'right';
export type ItemActionProps<E extends ElementType = 'a'> = {
id?: string;
variant?: ListVariant;
selected?: boolean;
disabled?: boolean;
chevronPosition?: ItemActionIconPosition;
icon?: IconIcon;
title?: ReactNode;
href?: string;
to?: string;
element?: E;
elementProps?: Omit<ComponentPropsWithoutRef<E>, 'href' | 'to' | 'target' | 'rel' | 'children' | 'tabIndex' | 'aria-disabled'>;
target?: string;
rel?: string;
} & Omit<ItemContentProps, 'title' | 'element'>;
declare function ItemAction<E extends ElementType = 'a'>(props: ItemActionProps<E>): import("react/jsx-runtime").JSX.Element;
export default ItemAction;
export declare function ChevronIcon(): import("react/jsx-runtime").JSX.Element;