Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
ak-breadcrumbs
Advanced tools
Breadcrumbs help users visualize their current location in relation to the rest of the website or application by showing the hierarchy of pages.
Interact with a live demo of the ak-breadcrumbs component with code examples.
npm install ak-breadcrumbs
This is a standard React component.
import AkBreadcrumbs, { AkBreadcrumbsItem } from 'ak-breadcrumbs';
ReactDOM.render(
<AkBreadcrumbs>
<AkBreadcrumbsItem href="/home" text="Home" />
<AkBreadcrumbsItem href="/home/item" text="Item" />
</AkBreadcrumbs>,
container
);
Kind: global class
Properties
boolean
number
function
node
| Array.<node>
Breadcrumbs React component.
The Breadcrumbs component will render a list of slash-separated breadcrumb items, and will automatically truncate the list if there are more than 8 items.
JS Example
import Breadcrumbs from 'ak-breadcrumbs';
ReactDOM.render(<Breadcrumbs />);
boolean
Whether the breadcrumbs should be expanded when there are 9 or more items.
If this is true, the breadcrumbs will not collapse and show an ellipsis item.
Kind: instance property of Breadcrumbs
Default: false
number
The maximum number of items to display before automatically collapsing the list of breadcrumbs.
Kind: instance property of Breadcrumbs
Default: 8
function
Callback that is called when the ellipsis expander item is selected.
Kind: instance property of Breadcrumbs
Required:
node
| Array.<node>
The items to display.
If there are more than the number of items specified by maxItems
, the list will
automatically be truncated to display only the first and last items. Clicking the ellipsis
separator item will display all the items.
Kind: instance property of Breadcrumbs
Kind: global class
Properties
string
string
element
element
BreadcrumbsItem React component.
JS Example
import { AkBreadcrumbsItem } from 'ak-breadcrumbs';
ReactDOM.render(<AkBreadcrumbsItem href="/item">Item</AkBreadcrumbsItem);
string
The target URL.
Kind: instance property of BreadcrumbsItem
string
The text content of the item.
Kind: instance property of BreadcrumbsItem
element
The icon to display before the item content. Icons specified in this way will always be displayed, even when the content is truncated.
Kind: static property of BreadcrumbsItem
element
The icon to display after the item content. Icons specified in this way will always be displayed, even when the content is truncated.
Kind: static property of BreadcrumbsItem
Let us know what you think of our components and docs, your feedback is really important for us.
Ask a question in our forum.
Check if someone has already asked the same question before.
Are you in trouble? Let us know!
FAQs
A React component that allows users to know their location
The npm package ak-breadcrumbs receives a total of 5 weekly downloads. As such, ak-breadcrumbs popularity was classified as not popular.
We found that ak-breadcrumbs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.