feat: add basic form field components

This commit is contained in:
ByteAtATime 2025-06-15 10:10:35 -07:00
parent 09fce5fb69
commit 78671e1943

View file

@ -16,6 +16,9 @@ const Form = (props) => {
});
};
const FormTextField = createWrapperComponent('Form.TextField');
const FormTextArea = createWrapperComponent('Form.TextArea');
const FormDropdown = createWrapperComponent('Form.Dropdown');
const FormDropdownItem = createWrapperComponent('Form.Dropdown.Item');
const FormDropdownSection = createWrapperComponent('Form.Dropdown.Section');
@ -25,8 +28,13 @@ Object.assign(FormDropdown, {
Section: FormDropdownSection
});
const FormDescription = createWrapperComponent('Form.Description');
Object.assign(Form, {
Dropdown: FormDropdown
Dropdown: FormDropdown,
TextField: FormTextField,
TextArea: FormTextArea,
Description: FormDescription
});
export { Form };