
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
responsive-css-material-ui
Advanced tools
A material-ui component which applies different CSS to a child component based on the page's current width (based on material-ui defined breakpoints).
A material-ui component which applies different CSS to a child component based on the page's current width (based on material-ui defined breakpoints).
The order of breakpoints: xs, sm, md, lg, xl. You can find here the values defined currently by material-ui for these breakpoints.
You can access the storybook for this component here.
The component accepts the props defined bellow in the table.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| lg | CSSProperties | no | undefined | CSS used for the lg breakpoint and wider screens (if not overridden) |
| md | CSSProperties | no | undefined | CSS used for the md breakpoint and wider screens (if not overridden) |
| sm | CSSProperties | no | undefined | CSS used for the sm breakpoint and wider screens (if not overridden) |
| xl | CSSProperties | no | undefined | CSS used for the xl breakpoint and wider screens (if not overridden) |
| xs | CSSProperties | no | undefined | CSS used for the xs breakpoint and bellow, and wider screens (if not overridden) |
There must be only one child otherwise an exception is triggered.
| ResponsiveCssMaterialUi uses | Material-ui | React |
|---|---|---|
| 1.0.x | 3.9.3 | 16.8.6 |
| 2.0.x | 4.0.2 | 16.8.6 |
| 2.1.x | 4.2.0 | 16.8.6 |
| 2.2.x | 4.2.1 | 16.8.6 |
| 2.3.x | 4.3.3 | 16.9.0 |
| 2.4.x | 4.9.0 | 16.9.0 |
| 2.5.x | 4.9.7 | 16.9.0 |
| 2.6.x | 4.10.2 | 16.9.0 |
| 2.7.x | 4.11.0 | 16.9.0 |
| 2.8.x | 4.11.3 | 16.9.0 or 17.0.0 |
| 2.9.x | 4.12.3 | 16.9.0 or 17.0.0 |
| 3.0.x | 5.10.17 | 18.0.0 |
| 3.1.x | 5.14.20 | 18.0.0 |
Displaying a div aligned differently based on the current window size:
import * as React from 'react';
import ResponsiveCssMaterialUi from 'responsive-css-material-ui';
class App extends React.Component {
render() {
var xs = { textAlign: 'center' };
var md = { textAlign: 'left' };
var lg = { textAlign: 'right' };
var style = { color: 'gray' };
return (
<div className="App">
<ResponsiveCssMaterialUi xs={xs} md={md} lg={lg}>
<div style={style}>Text</div>
</ResponsiveCssMaterialUi>
</div>
);
}
}
export default App;
FAQs
A material-ui component which applies different CSS to a child component based on the page's current width (based on material-ui defined breakpoints).
We found that responsive-css-material-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.