MCPcopy Create free account
hub / github.com/better-auth/examples / TextFieldErrorMessage

Function TextFieldErrorMessage

astro-example/src/components/ui/textfield.tsx:71–84  ·  view source on GitHub ↗
(
	props: PolymorphicProps<T, textFieldErrorMessageProps<T>>,
)

Source from the content-addressed store, hash-verified

69 };
70
71export const TextFieldErrorMessage = <T extends ValidComponent = "div">(
72 props: PolymorphicProps<T, textFieldErrorMessageProps<T>>,
73) => {
74 const [local, rest] = splitProps(props as textFieldErrorMessageProps, [
75 "class",
76 ]);
77
78 return (
79 <TextFieldPrimitive.ErrorMessage
80 class={cn(textfieldLabel({ error: true }), local.class)}
81 {...rest}
82 />
83 );
84};
85
86type textFieldDescriptionProps<T extends ValidComponent = "div"> =
87 TextFieldDescriptionProps<T> & {

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected