use-breakpoint-value
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

use-breakpoint-value

npm install --save use-breakpoint-value

yarn add use-breakpoint-value

import useBreakpointValue from 'use-breakpoint-value';

const responsiveValue = useBreakpointValue({
  xs: 'xs-value',
  sm: 'sm-value',
  md: 'md-value',
  lg: 'lg-value',
  xl: 'xl-value',
  xxl: 'xxl-value',
});

/use-breakpoint-value/

    Package Sidebar

    Install

    npm i use-breakpoint-value

    Weekly Downloads

    19

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    3.85 kB

    Total Files

    6

    Last publish

    Collaborators

    • jcwsw129