Skip to content

Commit

Permalink
chore: Correct docs for Input and Dropdown (#2479)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
FrederikBolding authored Jun 12, 2024
1 parent 0987842 commit 9520c8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/snaps-sdk/src/jsx/components/form/Dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ type DropdownProps = {
const TYPE = 'Dropdown';

/**
* A dropdown component, which is used to create a dropdown. This component
* can only be used as a child of the {@link Field} component.
* A dropdown component, which is used to create a dropdown.
*
* @param props - The props of the component.
* @param props.name - The name of the dropdown field. This is used to identify the
Expand Down
3 changes: 1 addition & 2 deletions packages/snaps-sdk/src/jsx/components/form/Input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ type InputProps = {
const TYPE = 'Input';

/**
* An input component, which is used to create an input field. This component
* can only be used as a child of the {@link Field} component.
* An input component, which is used to create an input field.
*
* @param props - The props of the component.
* @param props.name - The name of the input field. This is used to identify the
Expand Down

0 comments on commit 9520c8e

Please sign in to comment.