import type { AnchorHTMLAttributes, ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react'; import type { SxProp } from '../Layout/sx.cjs'; export interface NavbarProps extends HTMLAttributes { solid?: boolean; /** Renders a "skip to content" link (visible on keyboard focus) pointing at this selector, e.g. `#main`. */ skipLinkTarget?: string; /** Text of the skip link. Default: `Skip to content`. */ skipLinkLabel?: string; /** * Background (solid, no glass, when raised). `'base'` (default) sits on the page tone; `'raised'` uses the * surface of drawers, dialogs and menus (white in light mode). */ surface?: 'base' | 'raised'; /** * One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a * responsive breakpoint map (`{ base, sm, md, lg, xl }`). Scalar-only sx * merges into inline style; responsive sx injects a scoped class. */ sx?: SxProp; children: ReactNode; } export interface NavbarBrandProps extends AnchorHTMLAttributes { /** * Render the single child (e.g. Next ``) instead of an ``, so * client-side routing and middle-click keep working. */ asChild?: boolean; mark?: boolean; /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */ sx?: SxProp; children: ReactNode; } export interface NavbarNavProps extends HTMLAttributes { /** * Below 640px the items collapse into a menu opened by a built-in button * (`aria-expanded`/`aria-controls`; Esc closes and returns focus; choosing a link closes it). * Pass `false` to opt out and hide the nav at that width instead. Default `true`. */ mobileMenu?: boolean; /** Noun used in the menu button's label ("Open navigation menu"). Default `navigation menu`. */ menuLabel?: string; /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */ sx?: SxProp; children: ReactNode; } export interface NavbarItemProps extends AnchorHTMLAttributes { /** * Render the single child (e.g. Next ``) instead of an ``, so * client-side routing and middle-click keep working. */ asChild?: boolean; active?: boolean; /** Leading icon, before the label (decorative: `aria-hidden`). Size it to 16px, e.g. ``. */ icon?: ReactNode; /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */ sx?: SxProp; children: ReactNode; } export interface NavbarDividerProps extends Omit, 'role' | 'children'> { /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */ sx?: SxProp; } export interface NavbarActionsProps extends HTMLAttributes { /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */ sx?: SxProp; children: ReactNode; } export interface NavbarToggleProps extends ButtonHTMLAttributes { /** Whether the menu it opens is open (sets aria-expanded and the default label). */ open?: boolean; /** The icon; a menu (hamburger) icon by default. */ children?: ReactNode; /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */ sx?: SxProp; }