MCPcopy Create free account
hub / github.com/adobe/react-spectrum / InvalidIndicator

Function InvalidIndicator

packages/@react-spectrum/s2/src/DateField.tsx:211–220  ·  view source on GitHub ↗
(props: {
  isInvalid: boolean;
  isDisabled: boolean;
})

Source from the content-addressed store, hash-verified

209}
210
211export function InvalidIndicator(props: {
212 isInvalid: boolean;
213 isDisabled: boolean;
214}): ReactElement | null {
215 return props.isInvalid ? (
216 <div className={iconStyles}>
217 <FieldErrorIcon isDisabled={props.isDisabled} />
218 </div>
219 ) : null;
220}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected