MCPcopy
hub / github.com/chakra-ui/chakra-ui / getDefaults

Function getDefaults

packages/theme/src/components/input.ts:70–76  ·  view source on GitHub ↗
(props: Record<string, any>)

Source from the content-addressed store, hash-verified

68}
69
70function getDefaults(props: Record<string, any>) {
71 const { focusBorderColor: fc, errorBorderColor: ec } = props
72 return {
73 focusBorderColor: fc || mode("blue.500", "blue.300")(props),
74 errorBorderColor: ec || mode("red.500", "red.300")(props),
75 }
76}
77
78const variantOutline: PartsStyleFunction<typeof parts> = (props) => {
79 const { theme } = props

Callers 3

variantOutlineFunction · 0.85
variantFilledFunction · 0.85
variantFlushedFunction · 0.85

Calls 1

modeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…