0.3.7 • Published 4 years ago

@sakurawood/react-snack-bar v0.3.7

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

react-snack-bar

installation

npm install @sakurawood/react-snack-bar

or

yarn add @sakurawood/react-snack-bar

base usage

// example

import { useSnackBar } from '@sakurawood/react-snack-bar';

const App = () => {
  const snackBar = useSnackBar();
  snackBar.show('hello world', 'SUCCESS');
  return (
    <div>
      <div />
    </div>
  );
};

api

props

const props = {
  fontSize: 14 ,   // font size of text , default is 14
  align: 'bottom', // position of snack bar in the screen , optional value: ['top','bottom','center'], default is 'bottom'
  rtl: true        // right to left layout, default is false
}

useSnackBar(props)

methods

show : (text:string, type:'SUCCESS'|'WARN'|'INFO'|'ERROR'='ERROR')=> ...
0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.7

4 years ago

0.1.8

4 years ago

0.2.6

4 years ago

0.1.7

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.1.9

4 years ago

0.2.3

4 years ago

0.1.4

4 years ago

0.2.2

4 years ago

0.1.3

4 years ago

0.2.5

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago