
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/attachment
Advanced tools
npm i @snack-uikit/attachment
| name | type | default value | description |
|---|---|---|---|
| file | File | - | Π€Π°ΠΉΠ» |
| onDownload | (file?: File) => void | - | ΠΠΎΠ»Π±Π΅ΠΊ Π½Π° ΠΊΠ»ΠΈΠΊ ΠΏΠΎ ΠΊΠ½ΠΎΠΏΠΊΠ΅ ΡΠΊΠ°ΡΠΈΠ²Π°Π½ΠΈΡ |
| onDelete | (file?: File) => void | - | ΠΠΎΠ»Π±Π΅ΠΊ Π½Π° ΠΊΠ»ΠΈΠΊ ΠΏΠΎ ΠΊΠ½ΠΎΠΏΠΊΠ΅ ΡΠ΄Π°Π»Π΅Π½ΠΈΡ |
| onRetry | () => void | - | ΠΠΎΠ»Π±Π΅ΠΊ Π½Π° ΠΊΠ»ΠΈΠΊ ΠΏΠΎ ΠΊΠ½ΠΎΠΏΠΊΠ΅ ΠΏΠΎΠ²ΡΠΎΡΠ΅Π½ΠΈΡ |
| title | string | fileName | ΠΠ°Π³ΠΎΠ»ΠΎΠ²ΠΎΠΊ |
| description | string | fileExtension | ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅ |
| error | string | - | Π‘ΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠ΅ ΠΎΠ± ΠΎΡΠΈΠ±ΠΊΠ΅ |
| truncateVariant | "end" | "middle" | - | ΠΠ°ΡΠΈΠ°Π½Ρ ΠΎΠ±ΡΠ΅Π·Π°Π½ΠΈΡ ΡΡΡΠΎΠΊΠΈ: - End - Ρ ΠΊΠΎΠ½ΡΠ°; - Middle - ΠΏΠΎ ΡΠ΅ΡΠ΅Π΄ΠΈΠ½Π΅ |
| loading | boolean | - | Π£ΠΏΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΎΡΡΠΎΡΠ½ΠΈΠ΅ΠΌ Π·Π°Π³ΡΡΠ·ΠΊΠΈ |
| icon | JSXElementConstructor<{ size?: number; className?: string; }> | - | ΠΠΊΠΎΠ½ΠΊΠ° Π΄Π»Ρ ΡΠ°ΠΉΠ»Π° @defaultIcon FileSVG |
| size | enum Size: "s", "m" | s | Π Π°Π·ΠΌΠ΅Ρ |
| checked | boolean | - | Π£ΠΏΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΎΡΡΠΎΡΠ½ΠΈΠ΅ΠΌ Π²ΡΠ±ΡΠ°Π½/Π½Π΅ Π²ΡΠ±ΡΠ°Π½ |
| disabled | boolean | - | Π£ΠΏΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΎΡΡΠΎΡΠ½ΠΈΠ΅ΠΌ ΠΈΠ½ΡΠ΅ΡΠ°ΠΊΡΠΈΠ²Π½ΠΎΡΡΠΈ |
| onClick | (e: MouseEvent<HTMLDivElement | HTMLAnchorElement, MouseEvent>) => void | - | ΠΠΎΠ»Π±Π΅ΠΊ Π½Π° ΠΊΠ»ΠΈΠΊ ΠΏΠΎ ΠΊΠ°ΡΡΠΎΡΠΊΠ΅ |
| className | string | - | CSS-ΠΊΠ»Π°ΡΡ Π΄Π»Ρ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠ° Ρ ΠΊΠΎΠ½ΡΠ΅Π½ΡΠΎΠΌ |
| name | type | default value | description |
|---|---|---|---|
| file | File | - | Π€Π°ΠΉΠ» |
| onDownload | (file?: File) => void | - | ΠΠΎΠ»Π±Π΅ΠΊ Π½Π° ΠΊΠ»ΠΈΠΊ ΠΏΠΎ ΠΊΠ½ΠΎΠΏΠΊΠ΅ ΡΠΊΠ°ΡΠΈΠ²Π°Π½ΠΈΡ |
| onDelete | (file?: File) => void | - | ΠΠΎΠ»Π±Π΅ΠΊ Π½Π° ΠΊΠ»ΠΈΠΊ ΠΏΠΎ ΠΊΠ½ΠΎΠΏΠΊΠ΅ ΡΠ΄Π°Π»Π΅Π½ΠΈΡ |
| onRetry | () => void | - | ΠΠΎΠ»Π±Π΅ΠΊ Π½Π° ΠΊΠ»ΠΈΠΊ ΠΏΠΎ ΠΊΠ½ΠΎΠΏΠΊΠ΅ ΠΏΠΎΠ²ΡΠΎΡΠ΅Π½ΠΈΡ |
| title | string | fileName | ΠΠ°Π³ΠΎΠ»ΠΎΠ²ΠΎΠΊ |
| description | string | fileExtension | ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅ |
| error | string | - | Π‘ΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠ΅ ΠΎΠ± ΠΎΡΠΈΠ±ΠΊΠ΅ |
| truncateVariant | "end" | "middle" | - | ΠΠ°ΡΠΈΠ°Π½Ρ ΠΎΠ±ΡΠ΅Π·Π°Π½ΠΈΡ ΡΡΡΠΎΠΊΠΈ: - End - Ρ ΠΊΠΎΠ½ΡΠ°; - Middle - ΠΏΠΎ ΡΠ΅ΡΠ΅Π΄ΠΈΠ½Π΅ |
| loading | boolean | - | Π£ΠΏΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΎΡΡΠΎΡΠ½ΠΈΠ΅ΠΌ Π·Π°Π³ΡΡΠ·ΠΊΠΈ |
| icon | JSXElementConstructor<{ size?: number; className?: string; }> | - | ΠΠΊΠΎΠ½ΠΊΠ° Π΄Π»Ρ ΡΠ°ΠΉΠ»Π° @defaultIcon FileSVG |
| size | enum Size: "s", "m" | s | Π Π°Π·ΠΌΠ΅Ρ |
| checked | boolean | - | Π£ΠΏΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΎΡΡΠΎΡΠ½ΠΈΠ΅ΠΌ Π²ΡΠ±ΡΠ°Π½/Π½Π΅ Π²ΡΠ±ΡΠ°Π½ |
| disabled | boolean | - | Π£ΠΏΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΎΡΡΠΎΡΠ½ΠΈΠ΅ΠΌ ΠΈΠ½ΡΠ΅ΡΠ°ΠΊΡΠΈΠ²Π½ΠΎΡΡΠΈ |
| onClick | (e: MouseEvent<HTMLDivElement | HTMLAnchorElement, MouseEvent>) => void | - | ΠΠΎΠ»Π±Π΅ΠΊ Π½Π° ΠΊΠ»ΠΈΠΊ ΠΏΠΎ ΠΊΠ°ΡΡΠΎΡΠΊΠ΅ |
| className | string | - | CSS-ΠΊΠ»Π°ΡΡ Π΄Π»Ρ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠ° Ρ ΠΊΠΎΠ½ΡΠ΅Π½ΡΠΎΠΌ |
| truncate | { title?: number; description?: number; error?: number; } | - |
FAQs
Unknown package
We found that @snack-uikit/attachment demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 3 open source maintainers 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
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.