Skip to main content
Brand and assets
Build
Monitor and contribute
/
Front-end platform
  • Overview
  • Technical architecture
  • Core framework
  • Application
  • global-shell
  • modular-arch
  • Product shells
  • Modules & apps
  • Module directory
  • Apps
  • Bundles
  • Bundle explorer
  • Guides
  • Install Murray
  • Universal components
  • Build a universal component
  • Responsive styles
  • RTL support
  • Translations & i18n
  • When to use Form
  • Positioning elements
  • Add a new icon
  • Utilities
  • Overview
  • Layouts
  • Install Murray

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>;
Edit this page
Previous
Apps
Next
Universal components
  • Setup the dependency
  • Setup the MurrayProvider
  • Use your first component