Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@vexip-ui/bem-helper

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

@vexip-ui/bem-helper

Help you quickly get various BEM names and values.

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
1.3K
-10.7%
Maintainers
1
Weekly downloads
 
Created
Source

BEM Helper

Help you quickly get various BEM names and values.

Install

pnpm i @vexip-ui/bem-helper

Usage

Without namespace:

import { useBEM } from '@vexip-ui/bem-helper'

const bem = useBEM('button')

bem.b() // button
bem.be('icon') // button__icon
bem.bm('active') // button--active
bem.bem('icon', 'active') // button__icon--active
bem.cb() // .button
bem.cv('color') // --button-color

With namespace:

import { useBEM } from '@vexip-ui/bem-helper'

const bem = useBEM('button', 'vxp')

bem.b() // vxp-button
bem.be('icon') // vxp-button__icon
bem.bm('active') // vxp-button--active
bem.bem('icon', 'active') // vxp-button__icon--active
bem.cb() // .vxp-button
bem.cv('color') // --vxp-button-color

Methods

You can view the definition of types. There are detailed comments in this file.

License

All in MIT license.

Keywords

css

FAQs

Package last updated on 03 Nov 2023

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