Skip to content

Commit

Permalink
Tweak docs
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Jun 20, 2024
1 parent d5df595 commit 14e2933
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/snaps-sdk/src/jsx/components/form/Checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import { createSnapComponent } from '../../component';
/**
* The props of the {@link Checkbox} component.
*
* @property name - The name of the input field. This is used to identify the
* input field in the form data.
* @property type - The type of the input field. Defaults to `text`.
* @property value - The value of the input field.
* @property placeholder - The placeholder text of the input field.
* @property name - The name of the checkbox. This is used to identify the
* state in the form data.
* @property value - Whether the checkbox is checked or not.
*/
export type CheckboxProps = {
name: string;
Expand All @@ -20,10 +18,10 @@ const TYPE = 'Checkbox';
* A checkbox component, which is used to create a checkbox.
*
* @param props - The props of the component.
* @param props.name - The name of the checkboxd. This is used to identify the
* @param props.name - The name of the checkbox. This is used to identify the
* state in the form data.
* @param props.value - The value of the input field.
* @returns An input element.
* @param props.value - Whether the checkbox is checked or not.
* @returns A checkbox element.
* @example
* <Checkbox name="accept-terms" />
*/
Expand Down

0 comments on commit 14e2933

Please sign in to comment.