We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c49f0a5 commit f1c738bCopy full SHA for f1c738b
packages/match-media/src/index.ts
@@ -54,7 +54,7 @@ export const useBreakpointIndex = (options: defaultOptions = {}) => {
54
55
type Values = ((theme: Theme | null) => string[]) | string[]
56
57
-export const useResponsiveValue = (values: Values, options: defaultOptions) => {
+export const useResponsiveValue = (values: Values, options: defaultOptions = {}) => {
58
const { theme } = useThemeUI()
59
const array = typeof values === 'function' ? values(theme) : values
60
const index = useBreakpointIndex(options)
0 commit comments