{
  "$schema": "https://rift-ds.com/schema/component.schema.json",
  "version": "1.40.0",
  "kind": "component",
  "name": "BottomNav",
  "label": "Bottom nav",
  "slug": "bottom-nav",
  "category": "navigation",
  "description": "Mobile tab bar for three to five destinations, in the Rift style or as iOS Liquid Glass or Material 3 Expressive.",
  "client": true,
  "importPath": "rift-ds/components/BottomNav/BottomNav",
  "barrel": "main",
  "docsUrl": "https://rift-ds.com/components/bottom-nav",
  "markdownUrl": "https://rift-ds.com/components/bottom-nav.md",
  "exports": [
    {
      "component": "BottomNav",
      "props": [
        {
          "name": "items",
          "type": "BottomNavItem[]",
          "typeKind": "array",
          "required": true,
          "description": "Destinations, three to five of them",
          "typeRefs": [
            "BottomNavItem"
          ]
        },
        {
          "name": "activeKey",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Key of the destination for the current page"
        },
        {
          "name": "onValueChange",
          "type": "((key: string) => void)",
          "typeKind": "function",
          "required": false,
          "description": "Called with a destination's key when it is pressed"
        },
        {
          "name": "platform",
          "type": "\"default\" | \"ios\" | \"android\"",
          "typeKind": "enum",
          "values": [
            "android",
            "default",
            "ios"
          ],
          "required": false,
          "description": "Which platform's tab bar to draw. `default` is the Rift bar; `ios` is the\niOS 26 Liquid Glass capsule floating over content with a sliding lens\nbehind the selection; `android` is the Material 3 Expressive navigation\nbar with a pill indicator behind the selected icon.",
          "default": "default"
        },
        {
          "name": "search",
          "type": "BottomNavSearch",
          "typeKind": "reference",
          "required": false,
          "description": "A destination set apart from the rest, search unless its `icon` says\notherwise. On iOS it is its own glass circle beside the bar; elsewhere it\njoins the bar as the last destination.",
          "typeRefs": [
            "BottomNavSearch"
          ]
        },
        {
          "name": "minimized",
          "type": "boolean",
          "typeKind": "primitive",
          "required": false,
          "description": "iOS only: shrinks the bar to the selected destination alone, the way the\nsystem bar minimises while the page scrolls down. Ignored on other platforms.",
          "default": false
        },
        {
          "name": "fixed",
          "type": "boolean",
          "typeKind": "primitive",
          "required": false,
          "description": "Pins the bar to the bottom of the viewport, above the home-indicator safe area",
          "default": false
        },
        {
          "name": "aria-label",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Accessible name of the navigation landmark. Defaults to \"Tabs\", distinct\nfrom a site header's \"Primary\", so a screen carrying both announces two\ndifferent navs",
          "default": "Tabs"
        },
        {
          "name": "badgeLabel",
          "type": "((badge: string | number | true) => string)",
          "typeKind": "function",
          "required": false,
          "description": "Visually hidden text read after a destination's label when it carries a\nbadge, given the item's `badge`. Defaults to \", new\" for a dot (`true`)\nand \", 3 new\" for a count; the leading comma and space are part of the text.",
          "defaultExpression": "(badge: number | string | true) =>\n  badge === true ? ', new' : `, ${badge} new`"
        },
        {
          "name": "className",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Additional CSS classes",
          "default": ""
        },
        {
          "name": "linkComponent",
          "type": "LinkComponent",
          "typeKind": "reference",
          "required": false,
          "description": "The component its links render with, such as Next.js's `Link`, so they\nnavigate through the app's router. Wins over a LinkProvider's; a plain\n`<a>` when neither is set.",
          "typeRefs": [
            "LinkComponent"
          ]
        }
      ]
    }
  ],
  "types": {
    "BottomNavItem": {
      "kind": "interface",
      "definition": "interface BottomNavItem {\n  /** Unique key for this destination */\n  key: string;\n  /** Display label, always shown under the icon */\n  label: string;\n  /** Icon — Material Symbol name (string, drawn filled when selected) or custom element (ReactNode) */\n  icon: string | React.ReactNode;\n  /** Renders the destination as a real link to this URL instead of a button */\n  href?: string;\n  /** Click handler — also fires on a link destination, so a consumer can route client-side */\n  onClick?: () => void;\n  /** Count on the icon's corner; `true` shows a dot with no number */\n  badge?: number | string | true;\n}"
    },
    "BottomNavSearch": {
      "kind": "interface",
      "definition": "interface BottomNavSearch {\n  /** The button's accessible name on iOS, and its visible tab label on the other platforms */\n  label: string;\n  /**\n   * Icon — Material Symbol name (string) or custom element (ReactNode).\n   * Defaults to `search`; set it when the set-apart slot launches something\n   * else, such as an assistant.\n   */\n  icon?: string | React.ReactNode;\n  /** Click handler */\n  onClick?: () => void;\n  /** Renders the button as a link to this URL instead */\n  href?: string;\n}"
    },
    "LinkComponent": {
      "kind": "type",
      "definition": "type LinkComponent = React.ElementType<LinkComponentProps>;",
      "description": "A component that renders a link in place of a plain `<a>`, such as a router's.",
      "refs": [
        "LinkComponentProps"
      ]
    },
    "LinkComponentProps": {
      "kind": "type",
      "definition": "type LinkComponentProps = React.ComponentPropsWithRef<'a'> & { href: string };",
      "description": "The props a link component receives: every anchor attribute, the ref, and\nan `href` that is always a string. Next.js's `Link` takes these as they\nare; a router whose link takes `to` instead needs a one-line adapter:\n`({ href, ...props }) => <RouterLink to={href} {...props} />`."
    }
  },
  "externalTypes": {
    "ComponentPropsWithRef": "react",
    "ElementType": "react",
    "ReactNode": "react"
  },
  "keyboard": [
    {
      "pattern": "button",
      "part": "destinations",
      "label": "Button",
      "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/button/",
      "rows": [
        {
          "keys": [
            "Enter"
          ],
          "text": "Activates the button."
        },
        {
          "keys": [
            "Space"
          ],
          "text": "Activates the button."
        }
      ]
    }
  ],
  "size": {
    "gzip": 1261
  }
}
