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

Function TextFieldRoot

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

Source from the content-addressed store, hash-verified

18 };
19
20export const TextFieldRoot = <T extends ValidComponent = "div">(
21 props: PolymorphicProps<T, textFieldProps<T>>,
22) => {
23 const [local, rest] = splitProps(props as textFieldProps, ["class"]);
24
25 return <TextFieldPrimitive class={cn("space-y-1", local.class)} {...rest} />;
26};
27
28export const textfieldLabel = cva(
29 "text-sm data-[disabled]:cursor-not-allowed data-[disabled]:opacity-70 font-medium",

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected