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

@react-types/breadcrumbs

Package Overview
Dependencies
Maintainers
1
Versions
799
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-types/breadcrumbs - npm Package Compare versions

Comparing version 3.0.0-alpha.1 to 3.0.0-rc.0

6

package.json
{
"name": "@react-types/breadcrumbs",
"version": "3.0.0-alpha.1",
"version": "3.0.0-rc.0",
"description": "Spectrum UI components in React",

@@ -12,3 +12,3 @@ "license": "Apache-2.0",

"dependencies": {
"@react-types/shared": "^3.0.0-rc.2"
"@react-types/shared": "3.0.0-rc.3"
},

@@ -21,3 +21,3 @@ "peerDependencies": {

},
"gitHead": "207e6ee9076905c96638a7f81a367758872e1410"
"gitHead": "461d6321126ae9b4f1508aa912f7b36bf8a603f8"
}

@@ -13,3 +13,3 @@ /*

import {DOMProps, PressEvents, StyleProps} from '@react-types/shared';
import {AriaLabelingProps, DOMProps, PressEvents, StyleProps} from '@react-types/shared';
import {ItemProps} from '@react-types/shared';

@@ -19,7 +19,12 @@ import {Key, ReactElement, ReactNode} from 'react';

export interface BreadcrumbItemProps extends PressEvents {
/** Whether the breadcrumb item represents the current page. */
isCurrent?: boolean,
isHeading?: boolean,
/**
* The type of current location the breadcrumb item represents, if `isCurrent` is true.
* @default 'page'
*/
'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | boolean | 'true' | 'false',
/** Whether the breadcrumb item is disabled. */
isDisabled?: boolean,
headingAriaLevel?: number,
'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | boolean | 'true' | 'false',
/** The contents of the breadcrumb item. */
children: ReactNode

@@ -29,13 +34,24 @@ }

export interface BreadcrumbsProps<T> {
/** The breadcrumb items. */
children: ReactElement<ItemProps<T>> | ReactElement<ItemProps<T>>[],
maxVisibleItems?: 'auto' | number,
/** Whether the Breadcrumbs are disabled. */
isDisabled?: boolean,
/** Called when an item is acted upon (usually selection via press). */
onAction?: (key: Key) => void
}
export interface SpectrumBreadcrumbsProps<T> extends BreadcrumbsProps<T>, DOMProps, StyleProps {
export interface AriaBreadcrumbsProps<T> extends BreadcrumbsProps<T>, DOMProps, AriaLabelingProps {}
export interface SpectrumBreadcrumbsProps<T> extends AriaBreadcrumbsProps<T>, StyleProps {
/**
* Size of the Breadcrumbs including spacing and layout.
* @default 'L'
*/
size?: 'S' | 'M' | 'L',
isHeading?: boolean,
headingAriaLevel?: number,
/** Whether to always show the root item if the items are collapsed. */
showRoot?: boolean,
isDisabled?: boolean
/**
* Whether to place the last Breadcrumb item onto a new line.
*/
isMultiline?: boolean
}
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