Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-aria/breadcrumbs

Package Overview
Dependencies
Maintainers
1
Versions
784
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/breadcrumbs

Spectrum UI components in React

  • 3.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
778K
decreased by-4.41%
Maintainers
1
Weekly downloads
 
Created

What is @react-aria/breadcrumbs?

@react-aria/breadcrumbs is a React library that provides accessible breadcrumb navigation components. It is part of the React Aria collection, which focuses on providing accessible UI components that adhere to WAI-ARIA standards.

What are @react-aria/breadcrumbs's main functionalities?

Basic Breadcrumbs

This feature allows you to create a basic breadcrumb navigation component. Each `Item` represents a breadcrumb link.

import { Breadcrumbs, Item } from '@react-aria/breadcrumbs';

function BreadcrumbExample() {
  return (
    <Breadcrumbs>
      <Item key="home">Home</Item>
      <Item key="about">About</Item>
      <Item key="contact">Contact</Item>
    </Breadcrumbs>
  );
}

Custom Separator

This feature allows you to customize the separator between breadcrumb items. In this example, the separator is set to '>'.

import { Breadcrumbs, Item } from '@react-aria/breadcrumbs';

function CustomSeparatorExample() {
  return (
    <Breadcrumbs separator=">">
      <Item key="home">Home</Item>
      <Item key="about">About</Item>
      <Item key="contact">Contact</Item>
    </Breadcrumbs>
  );
}

Breadcrumbs with Icons

This feature allows you to include icons in your breadcrumb items. Each `Item` can contain both an icon and text.

import { Breadcrumbs, Item } from '@react-aria/breadcrumbs';
import { HomeIcon, InfoIcon, ContactIcon } from './icons';

function BreadcrumbsWithIcons() {
  return (
    <Breadcrumbs>
      <Item key="home"><HomeIcon /> Home</Item>
      <Item key="about"><InfoIcon /> About</Item>
      <Item key="contact"><ContactIcon /> Contact</Item>
    </Breadcrumbs>
  );
}

Other packages similar to @react-aria/breadcrumbs

FAQs

Package last updated on 01 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc