( props: PolymorphicProps<T, textFieldLabelProps<T>>, )
| 51 | }; |
| 52 | |
| 53 | export 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 | |
| 66 | type textFieldErrorMessageProps<T extends ValidComponent = "div"> = |
| 67 | TextFieldErrorMessageProps<T> & { |