All Projects → artisanofcode → storybook-preset-craco

artisanofcode / storybook-preset-craco

Licence: MIT license
Craco preset for Storybook

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to storybook-preset-craco

create-material-ui-app
create-react-app + storybook + storybook-addon-material-ui
Stars: ✭ 55 (+61.76%)
Mutual labels:  create-react-app, storybook
react-you-do-you
How I use React + Redux + Material-UI + TypeScript – you do you 💖
Stars: ✭ 103 (+202.94%)
Mutual labels:  create-react-app, storybook
craco-linaria
A craco plugin to use Linaria zero-runtime CSS in JS library in a create react app.
Stars: ✭ 29 (-14.71%)
Mutual labels:  create-react-app, craco
public-ol-web-template
OrangeLoops Web Project Boilerplate
Stars: ✭ 28 (-17.65%)
Mutual labels:  create-react-app, storybook
cra-and-storybook
Stars: ✭ 13 (-61.76%)
Mutual labels:  create-react-app, storybook
cra-template-unicorn
🦄 The full template of create-react-app with typescript, redux-toolkit, react-redux, react-router for Single Page Application!
Stars: ✭ 56 (+64.71%)
Mutual labels:  create-react-app, craco
react-antd-admin
基于vite2.x + react17.x + typescript4.x + antd4.x + react-router6.x + mobx6.x编写的一款简单高效的前后端分离的权限管理系统
Stars: ✭ 140 (+311.76%)
Mutual labels:  create-react-app, craco
Cra Recipe
Step-by-step guide to bootstrap a CRA app from scratch.
Stars: ✭ 158 (+364.71%)
Mutual labels:  create-react-app, storybook
Cordova Create React App
A tutorial on how to set up a Cordova project using Create React App.
Stars: ✭ 167 (+391.18%)
Mutual labels:  create-react-app
Yfiles For Html Demos
Contains demo sources for the JavaScript diagramming library yFiles for HTML
Stars: ✭ 202 (+494.12%)
Mutual labels:  create-react-app
Create React App With Redux
🌟 Simple redux implementation added to an app created with create-react-app
Stars: ✭ 162 (+376.47%)
Mutual labels:  create-react-app
React Redux Typescript Realworld App
RealWorld App implementation based on "react-redux-typescript-guide"
Stars: ✭ 178 (+423.53%)
Mutual labels:  create-react-app
Firefly
Web app boilerplate for beginners based on Firebase and React 🔥
Stars: ✭ 204 (+500%)
Mutual labels:  create-react-app
React Firestore Authentication
🔥Boilerplate Project for Authentication with Firestore in React.
Stars: ✭ 165 (+385.29%)
Mutual labels:  create-react-app
Create React Wptheme
Create modern, React-enabled WordPress themes with a single command.
Stars: ✭ 252 (+641.18%)
Mutual labels:  create-react-app
Cra closer look
An explanation of the problems that Create-React-App addresses, and how it attempts to solve them.
Stars: ✭ 159 (+367.65%)
Mutual labels:  create-react-app
React App Rewire Styled Components
Add the styled-components Babel plugin to your create-react-app app via react-app-rewired
Stars: ✭ 159 (+367.65%)
Mutual labels:  create-react-app
storybook-xstate-addon
A storybook addon to assist with writing stories that rely on xstate
Stars: ✭ 48 (+41.18%)
Mutual labels:  storybook
Blog Admin
blog-admin @react、@typescript、@apollographql
Stars: ✭ 239 (+602.94%)
Mutual labels:  create-react-app
React Gh Pages
Deploying a React App (created using create-react-app) to GitHub Pages
Stars: ✭ 2,801 (+8138.24%)
Mutual labels:  create-react-app

Craco preset for Storybook

One-line craco configuration for Storybook.

This preset is designed to use alongside @storybook/react.

🛠 Installing

Yarn

yarn add storybook-preset-craco

npm

npm i storybook-preset-craco

🎓 Usage

Basic

First, install this preset to your project.

# Yarn
yarn add -D storybook-preset-craco

# npm
npm install -D storybook-preset-craco

Once installed, add this preset to the appropriate file:

  • ./.storybook/main.js

    module.exports = {
      addons: ["storybook-preset-craco"],
    };

    Note: Don't forget to comment or remove the @storybook/preset-create-react-app from addons.

Usage with Docs

When working with Storybook Docs, simply add the following config to your main.js file.

module.exports = {
  addons: [
    "storybook-preset-craco",
    {
      name: "@storybook/addon-docs",
      options: {
        configureJSX: true,
      },
    },
  ],
};

Custom craco.config.js

In most cases, this preset will look for your craco.config.js in the current working directory.

If you are using a non standard project layout then you can provide it in cracoConfigFile.

module.exports = {
  addons: [
    {
      name: "storybook-preset-craco",
      options: {
        cracoConfigFile: "../craco.config.js",
      },
    },
  ],
};

⚖️ Licence

This project is licensed under the MIT licence.

All documentation and images are licenced under the Creative Commons Attribution-ShareAlike 4.0 International License.

📝 Meta

This project uses Semantic Versioning.

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].