Only
Specification
Props
Example
Explicit breakpoint
import React from 'react'
import { Only } from 'atomic-layout'
export const Post = () => (
<article>
{/* Refer to a breakpoint defined in "Layout.configure()" by name */}
<Only for="sm">
<p>Renders on "sm" breakpoint</p>
</Only>
{/* Or, provide a custom breakpoint object */}
<Only for={{ minWidth: 900, maxWidth: 1000 }}>
<p>Renders on the custom breakpoint</p>
</Only>
</article>
)High-pass
Low-pass
Bell
Notch
Standalone usage
Custom breakpoints
Last updated