How to use the atomic-layout.useResponsiveProps function in atomic-layout

To help you get started, we’ve selected a few atomic-layout examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kettanaito / atomic-layout / examples / hooks / UseResponsiveProps.jsx View on Github external
const Element = (props) => {
  const { size, showBadge, fontSize } = useResponsiveProps(props)

  return (
    <div style="{{" id="element">
      
        {showBadge &amp;&amp; }
      
    </div>
  )
}

atomic-layout

Physical representation of layout composition to create declarative, responsive layouts in React.

MIT
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis