
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@snack-uikit/breadcrumbs
Advanced tools
npm i @snack-uikit/breadcrumbs
ΠΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ Ρ Π»Π΅Π±Π½ΡΡ ΠΊΡΠΎΡΠ΅ΠΊ
| name | type | default value | description |
|---|---|---|---|
| items* | Item[] | - | ΠΠ°ΡΡΠΈΠ² Π°ΠΉΡΠ΅ΠΌΠΎΠ² |
| className | string | - | CSS-ΠΊΠ»Π°ΡΡ |
| separator | string | "βΊ" | Π Π°Π·Π΄Π΅Π»ΠΈΡΠ΅Π»Ρ |
| size | enum Size: "xs", "s" | s | Π Π°Π·ΠΌΠ΅Ρ |
| firstItemIconOnly | boolean | false | ΠΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ ΠΈΠΊΠΎΠ½ΠΊΡ Π±Π΅Π· Π»Π΅ΠΉΠ±Π»Π° Π² ΠΏΠ΅ΡΠ²ΠΎΠΌ Π°ΠΉΡΠ΅ΠΌΠ΅ |
| inactiveLastItem | boolean | false | ΠΠ΅Π»Π°Π΅Ρ Π½Π΅ΠΊΠ»ΠΈΠΊΠ°Π±Π΅Π»ΡΠ½ΡΠΌ ΠΏΠΎΡΠ»Π΅Π΄Π½ΠΈΠΉ ΡΠ»Π΅ΠΌΠ΅Π½Ρ, Π΄Π°ΠΆΠ΅ Π΅ΡΠ»ΠΈ Π΄Π»Ρ Π½Π΅Π³ΠΎ ΠΏΠ΅ΡΠ΅Π΄Π°Π½Ρ href ΠΈΠ»ΠΈ onClick |
| lastEmpty | boolean | - |
ΠΠ°ΡΡΠΈΠ² ΠΎΠ±ΡΠ΅ΠΊΡΠΎΠ², ΠΎΠΏΠΈΡΡΠ²Π°ΡΡΠΈΡ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ:
type Item = {
/* Π£Π½ΠΈΠΊΠ°Π»ΡΠ½ΡΠΉ id */
id: string,
/* Π’Π΅ΠΊΡΡ */
label: string;
/* ΠΠΎΡΠΎΡΠΊΠΈΠΉ Π²Π°ΡΠΈΠ°Π½Ρ ΡΠ΅ΠΊΡΡΠ° */
shortLabel?: string;
/* Π‘ΡΡΠ»ΠΊΠ° */
href?: string;
/* ΠΠΎΠ»Π±Π΅ΠΊ ΠΎΠ±ΡΠ°Π±ΠΎΡΠΊΠΈ ΠΊΠ»ΠΈΠΊΠ° Π² Π°ΠΉΡΠ΅ΠΌ */
onClick?(): void;
}
ΠΠΎΠΌΠΏΠΎΠ½Π΅Π½ΡΡ Breadcrumbs ΠΌΠ΅ΠΌΠΎΠΈΠ·ΠΈΡΠΎΠ²Π°Π½, ΡΡΠ°ΡΠ°ΠΉΡΠ΅ΡΡ ΠΏΠ΅ΡΠ΅Π΄Π°Π²Π°ΡΡ items ΠΎΠ΄Π½ΠΎΠΉ ΠΈ ΡΠΎΠΉ ΠΆΠ΅ ΡΡΡΠ»ΠΊΠΎΠΉ.
FAQs
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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.