mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-08-31 11:17:27 +00:00
feat: add basic form field components
This commit is contained in:
parent
09fce5fb69
commit
78671e1943
1 changed files with 9 additions and 1 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue