Skip to content

Commit 9520c8e

Browse files
chore: Correct docs for Input and Dropdown (#2479)
Removes a line in the documentation about `Dropdown` and `Input` only being children of `Field`. This is not accurate as they can also be used outside of forms.
1 parent 0987842 commit 9520c8e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/snaps-sdk/src/jsx/components/form/Dropdown.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ type DropdownProps = {
1919
const TYPE = 'Dropdown';
2020

2121
/**
22-
* A dropdown component, which is used to create a dropdown. This component
23-
* can only be used as a child of the {@link Field} component.
22+
* A dropdown component, which is used to create a dropdown.
2423
*
2524
* @param props - The props of the component.
2625
* @param props.name - The name of the dropdown field. This is used to identify the

packages/snaps-sdk/src/jsx/components/form/Input.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ type InputProps = {
2121
const TYPE = 'Input';
2222

2323
/**
24-
* An input component, which is used to create an input field. This component
25-
* can only be used as a child of the {@link Field} component.
24+
* An input component, which is used to create an input field.
2625
*
2726
* @param props - The props of the component.
2827
* @param props.name - The name of the input field. This is used to identify the

0 commit comments

Comments
 (0)