0.2.10 • Published 2 years ago
annafrans-styles-library v0.2.10
annafrans-styles-library
This is a component library containing a button.
Install
npm install annafrans-styles-library
Usage
import { Button, theme, CustomThemeProvider } from "annafrans-styles-library";
function App() {
return (
<CustomThemeProvider theme={theme}>
<Button variant="primary" size="sm">Click me!</Button>
</CustomThemeProvider>
);
}
export default App;
Props
variant
Select the variant of button. This changes the background color, text colour and size.
Default = primary
Other options: secondary
size
Select the button size.
Default = md
Other options: sm
bg
Change the background colour.