@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
20 lines (19 loc) • 898 B
TypeScript
import type { IconProp } from "@fortawesome/fontawesome-svg-core";
import type { PropsFor } from "../../types.js";
export type NavGroupProps = PropsFor<"div", {
/** Text or JSX content for the group toggle button */
name?: Exclude<React.ReactNode, boolean | null>;
/** Style the group as active (by default it will be true if a child link or button has an `.active` class) */
active?: boolean;
/** Optional font awesome svg icon reference */
icon?: IconProp;
/** Set the default opened state (for expanded sidebar and mobile nav) */
defaultExpanded?: boolean;
/** Render children even when `<Nav.Group>` is collapsed. (default `true`) */
eager?: boolean;
}>;
/**
* Group of clickable items for Nav
*/
declare const NavGroup: import("react").ForwardRefExoticComponent<NavGroupProps & import("react").RefAttributes<HTMLDivElement>>;
export default NavGroup;