arminbro / generate-react-cli

A simple React CLI to generate components instantly and more.

Home Page:https://www.npmjs.com/package/generate-react-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

styled components

craigryan opened this issue ยท comments

Nice tool, thanks!

would be great to include 'styled' for cssPreprocessor (see https://styled-components.com/) which generates a simple style.ts for the component imports, perhaps with a default Container just to get started:

// style.ts
import styled from 'styled-components';
const Container = styled.div`
  padding: 5px;
`
const Styles = {
  Container,
};

export default Styles;

`

This is a common use case, might get on it when I get some free time. Naming should be ComponentName.styled.{js,ts} as a default, but also configurable.

๐ŸŽ‰ This issue has been resolved in version 8.3.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€