UNPKG

@engie-group/fluid-design-system-react

Version:

Fluid Design System React

8 lines (7 loc) 692 B
import { type ComponentPropsWithoutRef } from 'react'; import { AsChild, HTMLAttributesWithoutComponentProps } from '../../../utils/typeHelpers'; import { NJList } from '../../list'; type NJSidebarItemCommonProps = Omit<NJList.ItemProps, 'wrapperAsChild' | 'interactive' | 'secondaryText' | 'trailingIcon' | 'textDistribution' | 'virtuallyFocused' | keyof ComponentPropsWithoutRef<'li'>>; export type NJSidebarItemProps = NJSidebarItemCommonProps & AsChild<HTMLAttributesWithoutComponentProps<'button', NJSidebarItemCommonProps>>; export declare const NJSidebarItem: import("react").ForwardRefExoticComponent<NJSidebarItemProps & import("react").RefAttributes<HTMLButtonElement>>; export {};