I have created FC [say child component for my example] containing address fields [couple of input boxes and SelectItems], when this FC is called from another component [parent], i need to access the values of input boxes and select items added by user.
Can you help me by giving simple example of say 1 text box in child component when called by parent via Functional Component style [TypeScript]
Here is my example code of child component having two Inputs and a SelectItem
return (
<>
<Accordion varient={'grouped'} expanded theme={theme}
items={[
{
content:
<>
<Input label='Address Line 1' fullWidth={true} type={''} startAdornment={""} endAdornment={""}
onChange={(e) => setAddressL1(e)} onBlur={handleChangeAddrL1} id={''} theme={theme} dynamic={false} />
<Input label='City' fullWidth={false} type={''} startAdornment={""} endAdornment={""} onChange={(e) => setCity(e)} onBlur={handleChangeCity} id={''} theme={theme} dynamic={false} />
<Select label='State' theme={theme} items={states} value = {stateCode} sxProps={{ m: 2, width: 100 }} ref={inputRef}
onChange={handleChange1} ></Select>
<Button text= 'Verify Address' ></Button>
</>,
isExpanded: true,
key: "string",
subtitle: `${addressL1} ${addressL2} ${city} ${stateCode} ${county} ${zipCode}`,
title: AccordionTitle,
actionBtn: <></>
}
]}
/>
</>
)
}