
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
@snack-uikit/truncate-string
Advanced tools
npm i @snack-uikit/truncate-string
<TruncateString
variant='end'
placement='top'
hideTooltip={true}
text={'Текст'}
maxLines={2}
/>
name | type | default value | description |
---|---|---|---|
text* | string | - | Текст, который будет обрезаться |
variant | "middle" | "end" | end | Вариант обрезания строки: - End - с конца - Middle - по середине |
className | string | - | CSS-класс |
hideTooltip | boolean | - | Скрывать ли тултип с полным текстом |
maxLines | number | - | Максимальное кол-во строк, до которого может сворачиваться текст. |
placement | enum Placement: "left" , "left-start" , "left-end" , "right" , "right-start" , "right-end" , "top" , "top-start" , "top-end" , "bottom" , "bottom-start" , "bottom-end" | - | Положение тултипа относительно обрезанного текста. |
Если компонент работает некорректно, проверь:
<TruncateString />
должен лежать в органиченном по ширине контейнере,
иначе он не сможет правильно высчитывать обрезание.FAQs
Unknown package
The npm package @snack-uikit/truncate-string receives a total of 707 weekly downloads. As such, @snack-uikit/truncate-string popularity was classified as not popular.
We found that @snack-uikit/truncate-string demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.