React component for a grid layout within fixed width / height. Usefull for dashboards or full screen web applications.
npm install react-grid-dashboardReact component for a grid layout within fixed width / height. Usefull for dashboards or full screen web applications.
Wraps css grid. No dependencies.
``bash`
yarn add react-grid-dashboard
And add it to bsconfig.json "bs-dependencies"
`re
@react.component
let make = () => {
// default columns=1, rows=1
// gap and fixed are optional
// no x or y - defaults to auto position
// default w=1 h=1
style={ReactDOM.Style.make(~padding="10px", ~background="Turquoise", ~height="100%", ())}>
{"Menu"->React.string}
style={ReactDOM.Style.make(
~padding="10px",
~background="LightSkyBlue",
~height="100%",
(),
)}>
{"Component A"->React.string}
MIT © gilevskaya