# Breadcrumb

[**Bootstrap docs**](https://getbootstrap.com/docs/5.3/components/breadcrumb/)

### Component Properties

* `breadcrumb`: An array containing the breadcrumb items. Each item should be an associative array with `text` and `url` properties. The `url` property can be `null` for the current page.
* `breadcrumb_utility_classes` (optional): An array of additional CSS classes that will be added to the `.breadcrumb` element.
* `breadcrumb_attributes` (optional): A `drupal attributes` array that can be used to add additional attributes to the `.breadcrumb` element.

### Usage

Include the breadcrumb component in your Twig template and pass the necessary parameters:

**Example 1**: General usage:

```twig
{% include 'radix:breadcrumb' with {
  breadcrumb: [
    { text: 'Home', url: '/home' },
    { text: 'Blog', url: '/blog' },
    { text: 'Post Title', url: null }  // The current page
  ],
  breadcrumb_utility_classes: ['my-custom-class']
} %}
```

**Example 2**: Simple Drupal init:

```twig
{% include 'radix:breadcrumb' with {
  breadcrumb: 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.trydrupal.com/radix/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.
