Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cca-io/rescript-mui

Open more actions menu

Repository files navigation

ReScript Bindings for MUI

Installation

  1. Install all necessary packages according to the official MUI-Material installation guide: https://mui.com/material-ui/getting-started/installation/.
  2. Install @rescript-mui/material
npm install @rescript-mui/material
  1. Add it to dependencies in your rescript.json:
{
  "dependencies": ["@rescript-mui/material"]
}

This library provides ReScript bindings for MUI.

These bindings will only work with ReScript 11+ (uncurried mode) and JSX version 4, as it enables us to utilize untagged variants, optional record fields, and record props spread. The latter is especially important, as we are finally able to inherit props from one component to another more easily.

Examples

Have a look at the examples folder.

What's inside?

MUI package ReScript bindings package Namespace Progress
@mui/material @rescript-mui/material Mui 100 %
@mui/lab @rescript-mui/lab MuiLab 100 %
@mui/x-date-pickers @rescript-mui/x-date-pickers MuiXDatePickers 30 %
@mui/system @rescript-mui/system MuiSystem 0 %
@mui/base Not implemented! MuiBase (?) -
@mui/joy Not implemented! Joy (?) -
@mui/x-data-grid Not implemented! MuiXDataGrid (?) -

NOTE: @mui/styles will never be implemented, as it is the legacy styling solution which is not compatible with React.StrictMode or React 18.

Documentation

See documentation.

Changelog

See CHANGELOG.

Contributing

See CONTRIBUTING.

Releases

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.