'Resource Not Found' component for React integrated with material-ui package.
- React 16.2.0 (not tested on other versions)
- Material-UI 0.20.0 (not tested on other versions)
I recommend that you get to know React and Material-UI.
npm i material-ui-not-found --save
or
yarn add material-ui-not-found
Once installed, just import and use the component:
import React from 'react';
import {NotFound} from 'material-ui-not-found/NotFound';
const className = 'custom-class';
const style = {
width: '50%',
};
export const Example = () => (
<NotFound
className={className}
style={style}
text={'Unknown resource.'}
/>
);
export default Example;
Props | Options | Default | Description |
---|---|---|---|
className | String | '' | Adds custom class to component wrapper. |
style | Object | {} | Adds custom inline styles to component wrapper. |
text | String | 'Page was not found.' | Replaces default text 'Page was not found.' with custom. |
- Submit an issue
- Fork the repository
- Create a dedicated branch (never ever work in
master
) - The first time, run command:
yarn
into the directory - Fix bugs or implement features
- Add tests
- Add examples
This project is licensed under the terms of the MIT license