1.0.32 • Published 11 months ago

@os-design/media v1.0.32

Weekly downloads
273
License
UNLICENSED
Repository
-
Last release
11 months ago

@os-design/media NPM version BundlePhobia

Utils and hooks for using CSS media queries. Can be used without os-design.

  • media – Generates media queries.
  • useIsMaxWidth – Checks whether the width of the screen is less than or equal to the specified media breakpoint (for example, sm).
  • useIsMinWidth – Checks whether the width of the screen is greater than or equal to the specified media breakpoint (for example, md).
  • useIsWidth – Checks whether the width of the screen matches the condition defined by the specified function.

All hooks support SSR.

Installation

Install the package using the following command:

yarn add @os-design/media

See all the features in the Storybook.

1.0.26

12 months ago

1.0.29

12 months ago

1.0.28

12 months ago

1.0.27

12 months ago

1.0.32

11 months ago

1.0.31

11 months ago

1.0.30

11 months ago

1.0.25

1 year ago

1.0.24

2 years ago

1.0.19

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.23

2 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago