UNPKG

fictoan-react

Version:

A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.

22 lines (21 loc) 757 B
import React from "react"; import { CommonAndHTMLProps } from '../../Element/constants'; type BaseItemProps = { hasAlert?: boolean; }; type IconProps = { hasEmptyIcon: boolean; hasNoIcon?: never; } | { hasEmptyIcon?: never; hasNoIcon: boolean; } | { hasEmptyIcon?: never; hasNoIcon?: never; }; export type SidebarItemCustomProps = BaseItemProps & IconProps; export type SidebarItemElementType = HTMLDivElement; export type SidebarItemNewProps = Omit<CommonAndHTMLProps<SidebarItemElementType>, keyof SidebarItemCustomProps> & SidebarItemCustomProps; export declare const SidebarItem: React.ForwardRefExoticComponent<SidebarItemNewProps & React.RefAttributes<HTMLDivElement>>; export {}; //# sourceMappingURL=SidebarItem.d.ts.map