UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

30 lines (29 loc) 1.15 kB
import { ListVariant } from './ListContext'; import { ItemContentProps } from './ItemContent'; import React from 'react'; import type { IconIcon } from '../icon/Icon'; export type ItemActionIconPosition = 'left' | 'right'; export type ItemActionProps<E extends React.ElementType = 'a'> = { id?: string; variant?: ListVariant; selected?: boolean; disabled?: boolean; chevronPosition?: ItemActionIconPosition; icon?: IconIcon; title?: React.ReactNode; href?: string; to?: string; element?: E; elementProps?: Omit<React.ComponentPropsWithoutRef<E>, 'href' | 'to' | 'target' | 'rel' | 'children' | 'tabIndex' | 'aria-disabled'>; target?: string; rel?: string; } & Omit<ItemContentProps, 'title' | 'element'>; declare function ItemAction<E extends React.ElementType = 'a'>(props: ItemActionProps<E>): import("react/jsx-runtime").JSX.Element; declare namespace ItemAction { var _supportsSpacingProps: boolean; } export default ItemAction; export declare function ChevronIcon(): import("react/jsx-runtime").JSX.Element; export declare namespace ChevronIcon { var _supportsSpacingProps: boolean; }