@fellesdatakatalog/button
v0.2.10
Published
Felles datakatalog UI button component
Downloads
23
Readme
@fellesdatakatalog/button
Button component.
Installation
npm i @fellesdatakatalog/button
Dependencies
- react
- styled-components
- @fellesdatakatalog/theme
Usage
Basic usage
In order to use the Button component, wrap the application in global theme provider from @fellesdatakatalog/theme
. Then, use the alert as any regular component.
import React, { FC } from 'react';
import ThemeProvider from '@fellesdatakatalog/theme';
import Button from '@fellesdatakatalog/button';
const App: FC = () => (
<ThemeProvider>
<Button>
Press me!
</Button>
</ThemeProvider>
);
export default App;