0.8.7 • Published 6 years ago
@generalelectric/lightbulb v0.8.7
: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
6 years ago
0.8.6
6 years ago
0.8.5
6 years ago
0.8.4
6 years ago
0.8.3
6 years ago
0.8.2
6 years ago
0.8.1
6 years ago
0.8.0
6 years ago
0.7.4
6 years ago
0.7.3
6 years ago
0.7.2
6 years ago
0.7.0
6 years ago
0.6.3
6 years ago
0.6.0
6 years ago
0.5.3
6 years ago
0.5.2
6 years ago
0.5.1
6 years ago
0.5.0
6 years ago
0.4.15
6 years ago
0.4.14
6 years ago
0.4.13
6 years ago
0.4.12
6 years ago
0.4.11
6 years ago
0.4.10
6 years ago
0.4.9
6 years ago
0.4.7
6 years ago
0.4.6
6 years ago
0.4.5
6 years ago
0.4.4
6 years ago
0.4.3
6 years ago
0.4.2
6 years ago
0.4.1
6 years ago
0.4.0
6 years ago
0.3.5
6 years ago
0.3.4
6 years ago
0.3.3
6 years ago
0.3.2
6 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.0
6 years ago