Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vtex/css-handles

Package Overview
Dependencies
Maintainers
45
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex/css-handles

> Module for handling CSS classes

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.6K
decreased by-11.89%
Maintainers
45
Weekly downloads
 
Created
Source

@vtex/css-handles

Module for handling CSS classes

Setup

yarn add @vtex/css-handles

Usage

import React from 'react'
import { generateBlockClass } from '@vtex/css-handles'
import styles from './styles.css'

const FooComponent = ({ blockClass }) => {
  const classes = generateBlockClass(styles.container, blockClass)

  return (
    <div className={classes}>
      Hello world!
    </div>
  )
}

export default FooComponent

It will render:

<div class="vtex-foo-1-x-container vtex-foo-1-x-container--bar">
  Hello world!
</div>

Development

After installing dependencies, with yarn, run:

yarn run build

Publishing

After installing dependencies, with yarn, run:

yarn run publish

FAQs

Package last updated on 06 Jun 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc