@s-ui/react-breakpoint-toggle
v1.6.0
Published
> Toogle elements. The 'breakpoint' option indicates when the item is displayed.
Downloads
7
Maintainers
Keywords
Readme
BreakpointToggle
Toogle elements. The 'breakpoint' option indicates when the item is displayed.
Installation
$ npm install @s-ui/react-breakpoint-toggle --save
Usage
Basic usage
import BreakpointToggle from '@s-ui/react-breakpoint-toggle'
return (<div>
<button>Normal button</button>
<br />
<BreakpointToggle breakpoint={575}>
<button>Mobile button</button>
</BreakpointToggle>
</div>)