How to install Murray
Setup the dependency
Go to your project folder and install the dependency:
yarn add murray
Setup the MurrayProvider
Wrap your app with the MurrayProvider component. This will provide the context for the rest of the components to work.
💡 This often in Root.tsx or App.tsx, near the Router.
import { MurrayProvider } from "murray";
<MurrayProvider>{/* your app */}</MurrayProvider>;
Most of the time, you will probably won't need to pass any props to the MurrayProvider, but if you want to customize the theme, you can pass a theme prop:
import { MurrayProvider } from "murray";
<MurrayProvider theme={{ density: "condensed" }}>{/* your app */}</MurrayProvider>;
Use your first component
Now you can use any of the components in your app. For example, let's use the Button component:
import { Button } from "murray";
<Button>Click me!</Button>;