1.4.0 • Published 5 years ago
@schibstedspain/sui-breakpoint-toggle v1.4.0
BreakpointToggle
Toogle elements. The 'breakpoint' option indicates when the item is displayed.
Installation
$ npm install @schibstedspain/sui-breakpoint-toggle --save
Usage
Basic usage
import BreakpointToggle from '@schibstedspain/sui-breakpoint-toggle'
return (<div>
<button>Normal button</button>
<br />
<BreakpointToggle breakpoint={575}>
<button>Mobile button</button>
</BreakpointToggle>
</div>)