MDL styles and React components for development. See them in action in Storybook.
npm i @masonite/external-ui-react
Add MDL CSS using SCSS found in the /styles
directory. There are 2 main files to choose from: index.scss and global.scss. Index provides variables and mixins only. You can safely use this any CSS file. Global adds styling to h1
-h6
, p
, and other element tags, as well as the variables.
Alternatively, you can modify the SCSS by defining the variables found in _config-variables.scss before importing index.scss.
import '@masonite/external-ui-react/dist/styles/index.scss'
// This is using webpack. How you access node_modules may differ.
@import '~@masonite/external-ui-react/dist/styles/index.scss';
Import a component as shown below and you're good to go. See the list of available components on Storybook or check the components source folder.
import { Button } from '@masonite/external-ui-react'
Clone down Masonitedoors/MDL
, install dependencies, and run npm run storybook:react
.
- Update the
CHANGELOG.md
for the version you're releasing. If there is an[Unreleased]
block, change that to the next version following semver. - Build the package with
npm run build-package:external-ui-react
from the monorepo root, followed bylerna publish
.