Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@storefront-ui/tw-plugin-peer-next
Advanced tools
SFUI peer-next plugin for Tailwind
Extend of peer
tailwind class but with +
(first next sibling). Original peer
class is for ~
(every following sibling).
Made with ❤️ by Alokai team and contributors.
Targeting next siblings with ~
is not suitable for HTML structure when pairing input
and label
, every label
after changed input
will also change. Of course we can wrap such groups but having in mind how browser works, nesting and making deeper HTML structure does affect performance of rendering HTML by browser.
npm install --save-dev @storefront-ui/tw-plugin-peer-next
// tailwind.config.ts
import sfPeerNext from '@storefront-ui/tw-plugin-peer-next';
export default {
content: ['your-components-source-directory/*.ts'],
plugins: [sfPeerNext]
};
Plugin extends Tailwindcss peer class and allows to use it as an adjacent sibling combinator.
<form>
<label class="block">
<span class="block text-sm font-medium text-slate-700">Email</span>
<input type="email" class="peer-next ..."/>
<p class="invisible mt-2 text-sm text-pink-600 peer-next-invalid:visible">
Please provide a valid email address.
</p>
</label>
</form>
Make sure to check out StorefrontUI! Read the documentation at https://docs.storefrontui.io/v2/ 🚀
FAQs
SFUI peer-next plugin for Tailwind
We found that @storefront-ui/tw-plugin-peer-next demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.