# Breadcrumb

The breadcrumb is a secondary navigation pattern that helps a user understand the hierarchy among levels and navigate back through them.

![](/files/-MjReG02-wX5ldkP5V8Q)

### Widget API

{% tabs %}
{% tab title="CBreadcrumb" %}

| Property         | Description                                                                                                                                                                                              |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| children         | <p>A list of <code>CBreadcrumbItem</code> to display in a row.</p><ul><li><strong>Type:</strong> <code>List\<CBreadcrumbItem></code></li><li><strong>Default:</strong> required</li></ul>                |
| noTrailingSlash  | <p>Whether to omit the trailing slash for the breadcrumbs or not.</p><ul><li><strong>Type:</strong> <code>bool</code></li><li><strong>Default:</strong> <code>true</code></li></ul>                      |
| breadcrumbsLimit | <p>To truncate the breadcrumbs when <code>children</code> length exceeds <code>breadcrumbsLimit</code>.</p><ul><li><strong>Type:</strong> <code>int</code></li><li><strong>Default:</strong> 3</li></ul> |
| {% endtab %}     |                                                                                                                                                                                                          |

{% tab title="CBreadcrumbItem" %}

| Property      | Description                                                                                                                                                                             |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| child         | <p>The content of the breadcrumb item.</p><ul><li><strong>Type:</strong> <code>Widget</code></li><li><strong>Default:</strong> required</li></ul>                                       |
| onTap         | <p>Called when the item is tapped.</p><ul><li><strong>Type:</strong> <code>VoidCallback</code></li><li><strong>Default:</strong> required</li></ul>                                     |
| isCurrentPage | <p>Whether this breadcrumb item represents the current page or not.</p><ul><li><strong>Type:</strong> <code>Widget</code></li><li><strong>Default:</strong> <code>true</code></li></ul> |
| {% endtab %}  |                                                                                                                                                                                         |
| {% endtabs %} |                                                                                                                                                                                         |

### Example

```dart
CBreadcrumb(
    breadcrumbsLimit: 4,
    noTrailingSlash: false,
    children: [
      CBreadcrumbItem(child: CText(data: 'one'), onTap: () {}),
      CBreadcrumbItem(child: CText(data: 'two'), onTap: () {}),
      CBreadcrumbItem(child: CText(data: 'three'), onTap: () {}),
      CBreadcrumbItem(
        child: CText(data: 'four'),
        isCurrentPage: true,
        onTap: () {},
      ),
      CBreadcrumbItem(child: CText(data: 'five'), onTap: () {}),
    ],
  );
```


---

# 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://nour-eldin-shobier.gitbook.io/carbon-flutter/widgets/todo-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.
