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

Function TextFieldLabel

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

Source from the content-addressed store, hash-verified

51 };
52
53export const TextFieldLabel = <T extends ValidComponent = "label">(
54 props: PolymorphicProps<T, textFieldLabelProps<T>>,
55) => {
56 const [local, rest] = splitProps(props as textFieldLabelProps, ["class"]);
57
58 return (
59 <TextFieldPrimitive.Label
60 class={cn(textfieldLabel(), local.class)}
61 {...rest}
62 />
63 );
64};
65
66type textFieldErrorMessageProps<T extends ValidComponent = "div"> =
67 TextFieldErrorMessageProps<T> & {

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected