UNPKG

@dnanpm/styleguide

Version:

DNA Styleguide repository provides the set of components and theme object used in various DNA projects.

39 lines (38 loc) 975 B
import type { KeyboardEvent, MouseEvent, ReactNode } from 'react'; import React from 'react'; export interface Props { /** * Unique ID for the component */ id?: string; /** * Content of the component */ children?: ReactNode; /** * On component mouse click callback */ onClick?: (e: MouseEvent<HTMLElement>) => void; /** * On component keyboard key down callback */ onKeyDown?: (e: KeyboardEvent<HTMLElement>) => void; /** * Allows to set component as active */ isActive?: boolean; /** * Allows to pass a custom className */ className?: string; /** * Allows to pass testid string for testing purposes */ 'data-testid'?: string; } /** * @visibleName Priority NavigationItem */ declare const PriorityNavigationItem: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLLIElement>>; /** @component */ export default PriorityNavigationItem;