import React from 'react'; import { Button, FieldError, Input, Label, SearchField as RACSearchField, type SearchFieldProps as RACSearchFieldProps, Text, type ValidationResult, } from 'react-aria-components'; export interface SearchFieldProps extends RACSearchFieldProps { label?: string; description?: string; placeholder?: string; errorMessage?: string | ((validation: ValidationResult) => string); } export function SearchField({ label, description, placeholder = '', errorMessage, ...props }: SearchFieldProps) { return ( {description && {description}} {errorMessage} ); }