0.9.2 • Published 1 year ago

medicatel-components v0.9.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

How to use

Add provider on root project

// Provider should only be once in your project

import {
  MedicatelConfig,
  MedicatelComponentsProvider,
  Button,
} from 'medicatel-components';

const medicatelConfig = new MedicatelConfig({
  api: {
    username: 'your api username',
    password: 'your api password',
  },
  environment: 'development' | 'production',
  // optional
  // if using react query u can pass the queryClient config
  queryClient: new QueryClient(),
});

<MedicatelComponentsProvider medicatelConfig={medicatelConfig}>
  {/* U can began using the components */}
  <Button>Hello World!</Button>
</MedicatelComponentsProvider>;