New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

prop-css

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prop-css

`propCSS` is a SvelteKit / TypeScript library that allows you to manage CSS properties in a more JavaScript-friendly way. It provides a simple and intuitive API to manipulate CSS properties directly from your SvelteKit code.

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

propCSS · ease-to-use SvelteKit CSS

propCSS is a SvelteKit / TypeScript library that allows you to manage CSS properties in a more JavaScript-friendly way. It provides a simple and intuitive API to manipulate CSS properties directly from your SvelteKit code.

Usage

<p use:propCSS={{ backgroundColor: 'red', color: 'white', paddingLeft: '2rem' }}>This is a test!</p>

CSS-Properties can be set using the use:propCSS directive. The directive takes an object as an argument, where the keys are the CSS properties and the values are their corresponding values. Properties with hyphens (e.g. background-color) can be set using camelCase (e.g. backgroundColor).

FAQs

Package last updated on 06 Mar 2024

Did you know?

Socket

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.

Install

Related posts