All Projects → sergeysova → babel-plugin-styled-name

sergeysova / babel-plugin-styled-name

Licence: MIT license
Name for your styled-components in development

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to babel-plugin-styled-name

sugui
UI Components library based on React, Styled Components and React Testing Library
Stars: ✭ 17 (+6.25%)
Mutual labels:  styled-components
react-kirby-starter
React boilerplate with headless Kirby API [WIP]
Stars: ✭ 23 (+43.75%)
Mutual labels:  styled-components
tsstyled
A small, fast, and simple CSS-in-JS solution for React.
Stars: ✭ 52 (+225%)
Mutual labels:  styled-components
razzle-template
SSR template with React, Effector, TypeScript, ReactRouter, and StyledComponents
Stars: ✭ 62 (+287.5%)
Mutual labels:  styled-components
mapet
Muitas pessoas tem bichinhos de estimação, entre eles os mais comuns são gatos e cachorros. Com a correria do dia a dia pode acontecer deles acabarem escapando, e ai aonde divulgar para ajudarem a encontrá-lo o mais rápido possível? Redes Sociais? WhatsApp? Pensando nisso criamos o mapet, um mapa que você indica aonde seu pet foi visto pela últi…
Stars: ✭ 15 (-6.25%)
Mutual labels:  styled-components
react-ssr-hydration
Example of React Server Side Rendering with Styled Components and Client Side Hydration
Stars: ✭ 15 (-6.25%)
Mutual labels:  styled-components
2019.hackthenorth.com
Hack the North 2019's main website.
Stars: ✭ 52 (+225%)
Mutual labels:  styled-components
cargo-react
A Boilerplate for creating Component Libraries in React + Typescript + StoryBook + Styled Components
Stars: ✭ 13 (-18.75%)
Mutual labels:  styled-components
bharadwaj.duggaraju.com
🧍 My personal website, made with React and Typescript.
Stars: ✭ 38 (+137.5%)
Mutual labels:  styled-components
karang
React components library that implement Lalamove Design.
Stars: ✭ 14 (-12.5%)
Mutual labels:  styled-components
github-explorer
Explore GitHub repositories - built with React.js and Styled Components.
Stars: ✭ 32 (+100%)
Mutual labels:  styled-components
react-styled-floating-label
Floating label component which works with any HTML input
Stars: ✭ 33 (+106.25%)
Mutual labels:  styled-components
marvel-jarvig
Marvel JARVIG (Just A Rather Very Interesting Game) is a game that lets you find and discover Marvel Comics characters based on their name, image and description!
Stars: ✭ 13 (-18.75%)
Mutual labels:  styled-components
components
Components library for the Blockchain.com ecosystem 💍 🔥
Stars: ✭ 20 (+25%)
Mutual labels:  styled-components
nytimes-bestseller
NY Times best sellers list explorer
Stars: ✭ 35 (+118.75%)
Mutual labels:  styled-components
jojo-cards
Card game based on Jojo's Bizarre Adventure (ジョジョの奇妙な冒険)
Stars: ✭ 112 (+600%)
Mutual labels:  styled-components
neu ui
Prototype and build projects faster using Neu UI - an open source React component library designed to neumorphic style. Built using React, Styled Components, Jest and Storybook.
Stars: ✭ 23 (+43.75%)
Mutual labels:  styled-components
utd-grades
A tool to view grade distributions at UT Dallas.
Stars: ✭ 23 (+43.75%)
Mutual labels:  styled-components
jiahao.codes
😎 Personal Website
Stars: ✭ 63 (+293.75%)
Mutual labels:  styled-components
forex-web-app
💱 foreign currency exchange app built with react hooks
Stars: ✭ 17 (+6.25%)
Mutual labels:  styled-components

babel-plugin-styled-name

Add displayName and componentId for styled-components.

Installation

$ npm install babel-plugin-styled-name --save-dev

Example

Improve readability in devTools

Before

  ↓

After

How?

const Button = styled.button`
  color: red;
`

  ↓

const Button = styled.button.withConfig({ displayName: 'Button', componentId: 'Button' })`
  color: red;
`

Usage

Use only for development!

Via .babelrc (Recommended)

.babelrc

{
  "env": {
    "development": {
      "plugins": ["styled-name"]
    }
  }
}

Via CLI

$ babel --plugins styled-name script.js

Via Node API

require('babel-core').transform('code', {
  plugins: ['styled-name']
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].