0.8.7 • Published 4 years ago

@generalelectric/lightbulb v0.8.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

:bulb: Lightbulb - React component library

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

Installation :construction:

NPM

npm install --save @generalelectric/lightbulb

Yarn 📦 :cat2:

yarn add @generalelectric/lightbulb

Components

Import the specific component blocks you need:

import React from 'react';
import { Button, Card } from '@generalelectric/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
0.8.7

4 years ago

0.8.6

4 years ago

0.8.5

5 years ago

0.8.4

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.4

5 years ago

0.7.3

5 years ago

0.7.2

5 years ago

0.7.0

5 years ago

0.6.3

5 years ago

0.6.0

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.15

5 years ago

0.4.14

5 years ago

0.4.13

5 years ago

0.4.12

5 years ago

0.4.11

5 years ago

0.4.10

5 years ago

0.4.9

5 years ago

0.4.7

5 years ago

0.4.6

5 years ago

0.4.5

5 years ago

0.4.4

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago