
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
tailwindcss-line-clamp
Advanced tools
TailwindCSS plugin to generate webkit line clamp utilities
TailwindCSS plugin to generate webkit line clamp utilities.
npm i tailwindcss-line-clamp --save-dev
# or
yarn add tailwindcss-line-clamp -D
{
theme: {
lineClamp: {
1: 1,
2: 2,
3: 3
}
},
plugins: [
require('tailwindcss-line-clamp')
],
}
This will generate the following utilities:
.clamp-1 {
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
.clamp-2 {
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.clamp-3 {
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
By default, no variants are generated for these utilities. If you would like them, modify lineClamp
in the variants section of your tailwind.config.js
file.
{
variants: {
lineClamp: ["responsive"];
}
}
-webkit-line-clamp
is not supported in ie11. If you need to accomodate these users you may need to reach for a JS or server-side solution.
Can I use: -webkit-line-clamp
FAQs
TailwindCSS plugin to generate webkit line clamp utilities
The npm package tailwindcss-line-clamp receives a total of 0 weekly downloads. As such, tailwindcss-line-clamp popularity was classified as not popular.
We found that tailwindcss-line-clamp 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
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.