Example with Gatsby

Get started with a example

To begin, the most straightforward approach is to utilize one of the provided templates. These templates come pre-configured with the necessary settings, such as CssBaseline and other fundamental components.

If you're new to GitHub and need guidance on initiating a project using a template, you can access comprehensive instructions on how to get started on this example.

Generate new application

Follow Gatsby quick start guide to create new Gatsby application:

yarn create gatsby

Installation

Install dependencies:

yarn add @bolio-ui/core

Setup

Add styles imports, BolioUIProvider and CssBaseline to src/pages/index.tsx:

import * as React from 'react'
import type { HeadFC, PageProps } from 'gatsby'
import { BolioUIProvider, CssBaseline, Text } from '@bolio-ui/core'

const IndexPage: React.FC<PageProps> = () => {
  return (
    <BolioUIProvider>
      <CssBaseline />
      <Text p>Your app page here</Text>
    </BolioUIProvider>
  )
}

export default IndexPage

export const Head: HeadFC = () => <title>Home</title>

Ready to go! Start the development server:

npm run develop

Previous

Example with Remix

Next

Example with RedwoodJS

MADE & DESIGNED WITHBY BRUNO ANDRADE
docs background gradient blue
docs background gradient violet