MCPcopy
hub / github.com/yocontra/react-responsive / MediaQueryProps

Interface MediaQueryProps

src/Component.ts:5–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { MediaQueryAllQueryable, MediaQueryMatchers } from './types'
4
5interface MediaQueryProps extends MediaQueryAllQueryable {
6 component?: ReactNode
7 children?: ReactNode | ((matches: boolean) => ReactNode)
8 query?: string
9 style?: CSSProperties
10 className?: string
11 device?: MediaQueryMatchers
12 values?: Partial<MediaQueryMatchers>
13 onBeforeChange?: (_matches: boolean) => void
14 onChange?: (_matches: boolean) => void
15}
16
17// ReactNode and ReactElement typings are a little funky for functional components, so the ReactElement cast is needed on the return
18const MediaQuery: FC<MediaQueryProps> = ({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…