@cryptic-css/prop-mq
Adds support to use the viewport definition method behind
@w11r/use-breakpoint
's React hook. Prop names: mediaQuery, mq, at
The output is plain Media Query.
The basic logic:
- Define default values.
- Define overrides per breakpoint.
#
UsageLive Editor
Result
#
ConfigurationThe plugin included in the
ccss
package pre-configured. Skip this step if you don't need custom configuration and/or CCSS instance.