import { fireEvent, render, screen } from '@testing-library/react'; import { useState } from 'react'; import { describe, expect, it } from 'vitest'; import { FormActions, FormError, FormField, OptionButton, OptionButtonGroup, OptionCard, OptionCardGroup, TextArea, TextInput, } from './form'; function FormDemo() { const [title, setTitle] = useState(''); const [details, setDetails] = useState(''); const [category, setCategory] = useState<'wrong_cover' | 'wrong_metadata'>('wrong_cover'); const [priority, setPriority] = useState<'low' | 'normal' | 'high'>('normal'); return (
setTitle(event.target.value)} />