- This repo is currently not maintained! Here still for archival purposes!
Bulb is a component library built in React that serves as a reusable component library for modern user interfaces.
npm install --save lightbulb
yarn add lightbulb
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;
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