import React from 'react'; import type { FormRowProps } from '../../FormRow/FormRow'; import { FormRow } from '../../FormRow/FormRow'; import type { FormRowHelperTextOwnProps } from '../../FormRow/FormRowHelperText'; import { SearchInput, type SearchInputProps } from '../../Inputs/SearchInput/SearchInput'; import type { LabelAfterProps } from '../../LabelAfter/LabelAfter'; import { LabelAfter } from '../../LabelAfter/LabelAfter'; /** @inheritdoc */ export interface SearchFieldProps extends Omit, Omit, Partial { /** * Label displayed after the input element. */ labelAfter?: LabelAfterProps['label']; /** * Display loading indicator. */ loading?: boolean; } export const SearchField: React.FC = React.forwardRef( function SearchField( { label, tooltip, required, labelAfter, loading, error, warning, hint, justify, labelHidden, width, ...inputProps }: SearchFieldProps, ref ) { return (
{labelAfter && }
); } );