
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
@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
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated βelf-*β npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.