0.2.10 • Published 3 years ago

annafrans-styles-library v0.2.10

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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

"primary button" "secondary button"

size

Select the button size. Default = md Other options: sm

"medium button" "small button"

bg

Change the background colour.

0.2.10

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago