Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.
/ lightbulb Public archive

💡 ✈️ A reusable component library in React.

License

Notifications You must be signed in to change notification settings

ahtee/lightbulb

Repository files navigation

- This repo is currently not maintained! Here still for archival purposes!

💡 Lightbulb - React component library

Bulb is a component library built in React that serves as a reusable component library for modern user interfaces.

Installation 🚧

NPM

npm install --save lightbulb

Yarn 📦 🐈

yarn add lightbulb

Components

Import the specific component blocks you need:

import React from 'react';
import { Button, Card } from 'lightbulb';

function App() {
  return (
    <div className="App">
      <Card status="success" title="Success">
        <Button>Learn React</Button>
      </Card>
    </div>
  );
}
export default App;

Applying the theme

Optionally, you can apply a light, dark or toggle between themes by adding a <ThemeProvider /> component wrapper in your App entry point.

import React from 'react'
import { ThemeProvider } from 'styled-components'
import theme from './theme'

const App = props => (
  <ThemeProvider theme={theme}>{/* application elements */}</ThemeProvider>
)

export default App

About

💡 ✈️ A reusable component library in React.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published