import type { DSFieldElement } from '@digdir/designsystemet-web'; import '@digdir/designsystemet-web'; import type { HTMLAttributes } from 'react'; import type { DefaultProps } from '../../types'; export type FieldProps = { /** * Position of toggle inputs (radio, checkbox, switch) in field * @default start */ position?: 'start' | 'end'; /** * Change the default rendered element for the one passed as a child, merging their props and behavior. * @default false * @deprecated This is not supported anymore, as the element needs to be `ds-field` */ asChild?: boolean; } & HTMLAttributes & DefaultProps; /** * Field component, used to wrap a form field. * * @example * * * Beskrivelse * * Feilmelding * */ export declare const Field: import("react").ForwardRefExoticComponent<{ /** * Position of toggle inputs (radio, checkbox, switch) in field * @default start */ position?: "start" | "end"; /** * Change the default rendered element for the one passed as a child, merging their props and behavior. * @default false * @deprecated This is not supported anymore, as the element needs to be `ds-field` */ asChild?: boolean; } & HTMLAttributes & DefaultProps & import("react").RefAttributes>; //# sourceMappingURL=field.d.ts.map