gzamaury / nextjs-templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This template ships an example Next.js app with Storybook + PrimeReact

This example shows a default set up of Storybook using storybook-addon-next. Included in this example are stories that demonstrate the ability to use Next.js and PrimeReact features in Storybook.

TypeScript

As of v6.0, Storybook has built-in TypeScript support, so no configuration is needed. If you want to customize the default configuration, refer to the TypeScript docs.

🚅 Quick start

  1. Create the application.

    Use degit to get this template.

    # Clone the template
    npx degit gzamaury/nextjs-templates my-new-project
  2. Install the dependencies.

    Navigate into your new site’s directory and install the necessary dependencies.

    # Navigate to the directory
    cd my-new-project/
    
    # Install the dependencies
    npm install
  3. Open the source code and start editing!

    Open the my-new-project directory in your code editor of choice and building your first component!

  4. Browse your stories!

    Run npm run storybook to see your component's stories at http://localhost:6006

Preview live with StackBlitz

Open in StackBlitz

About


Languages

Language:JavaScript 78.1%Language:Dockerfile 12.9%Language:CSS 7.0%Language:TypeScript 1.4%Language:SCSS 0.6%