Drupal Radix Theme
  • Introduction
    • Overview & Support
  • Installation
    • Requirements
    • Getting Started
    • Setup with ddev
  • Understanding Radix
    • Individual files and directories
    • Bootstrap Build
    • Bootswatch
  • Working with the components
    • Components: Intro
    • Components: A deep dive
    • An example component
    • The drupal-radix-cli
    • Copy and modify a component
  • Components
    • Accordion
    • Alerts
    • Badge
    • Block
    • Buttons
    • Button Group
    • Breadcrumb
    • Card
    • Carousel
    • Close button
    • Comment
    • Collapse
    • Details
    • Dropdown menu
    • Field
    • Field Comment
    • Fieldset
    • Figure
    • Form
    • Form: Element
    • Form Element Label
    • Form Element: Radio Checkbox
    • Heading
    • HTML
    • Image
    • Input
    • List group
    • Local Tasks
    • Media
    • Modal
    • Nav
    • Nav Item
    • Navbar
    • Navbar Brand
    • Node
    • Offcanvas
    • Page
    • Page: Content
    • Page: Footer
    • Page: Navigation
    • Page: Title
    • Pagination
    • Progress
    • Radios
    • Region
    • Select
    • Spinners
    • Table
    • Taxonomy
    • Textarea
    • Toasts
    • Tooltips
    • User
    • Views: view
    • Views: view--grid
    • Views: view--table
    • Views: view--unformatted
  • Misc
    • Migration and upgrading
    • Roadmap
    • Credits & Contributions
Powered by GitBook
On this page
  • Key Features
  • Customization Options
  • Usage

Was this helpful?

  1. Components

Navbar Brand

The Drupal Navbar-brand component/block. It offers options for site name, slogan, image branding, and link configuration.

Key Features

  • Text Branding: Allows the inclusion of text for the brand, suitable for simple or text-based branding.

  • Link Configuration: Supports the option to make the brand a clickable link, directing to a specified path.

  • Image Branding: Provides the capability to include an image as the brand logo, with customizable width, height, and alternative text.

  • Utility Class Integration: Facilitates the addition of custom utility classes for further customization and styling.

Customization Options

  • Text and Link Customization: Configure the brand text and the path to create a link or non-link brand representation.

  • Image Customization: Easily integrate a brand image with control over its dimensions and alternative text.

  • Styling Flexibility: Apply additional utility classes to tailor the appearance and positioning of the navbar-brand.

Usage

{% include 'radix:navbar-brand' with {
  text: site_name,
  slogan: site_slogan,
  image: site_logo,
  width: '40px',
  height: 'auto',
  path: path('<front>'),
  alt: elements.content.site_name['#markup'] ~ ' logo' ,
} %}
PreviousNavbarNextNode

Last updated 1 year ago

Was this helpful?