# Breadcrumb

The `Breadcrumb` component displays the path to the current resource using a hierarchy of links.

### Preview

<div align="left"><figure><img src="/files/xHEOJE7M7kUJwIdAQixP" alt="Gravity breadcrumb component" width="139"><figcaption></figcaption></figure></div>

### Usage

```javascript
import { Breadcrumb } from 'components/lib';

function MyComponent({ ...props }){

  const items = [
    { name: 'Home', url: '/' },
    { name: 'Dashboard', url: '/dashboard' },
    { name: 'Settings', url: '/dashboard/settings' }
  ];

  return (
    <div>
      <Breadcrumb items={ items } />
    </div>
  );
}
```

### Props

| Prop  | Description               | Required | Value                                            |
| ----- | ------------------------- | -------- | ------------------------------------------------ |
| items | array of breadcrumb items | required | array of objects ({ name: string, url: string }) |

### Notes

* The `Breadcrumb` component uses the `BreadcrumbList`, `BreadcrumbItem`, `BreadcrumbLink`, `BreadcrumbPage`, `BreadcrumbSeparator`, and `BreadcrumbEllipsis` sub-components.
* The `items` prop specifies the list of breadcrumb items, each containing a `name` and `url`.
* The `BreadcrumbSeparator` component provides a separator between breadcrumb items, defaulting to a right chevron icon.
* The `BreadcrumbEllipsis` component can be used to indicate more items in the breadcrumb path.
* For more details, refer to the [Shadcn Breadcrumb documentation](https://ui.shadcn.com/docs/components/breadcrumb).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.usegravity.app/gravity-web/components/breadcrumb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
