UNPKG

@keycloakify/keycloak-admin-ui

Version:
9 lines 546 B
import { jsx as _jsx } from "react/jsx-runtime"; import { TextInput } from "@patternfly/react-core"; import { useFormContext } from "react-hook-form"; import { FormGroupField } from "../../identity-providers/component/FormGroupField"; export const TextField = ({ label, field, isReadOnly = false }) => { const { register } = useFormContext(); return (_jsx(FormGroupField, { label: label, children: _jsx(TextInput, { id: label, "data-testid": label, readOnly: isReadOnly, ...register(field) }) })); }; //# sourceMappingURL=TextField.js.map