0.2.10 • Published 2 years ago

annafrans-styles-library v0.2.10

Weekly downloads
-
License
-
Repository
-
Last release
2 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

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago