Skip to content

Commit

Permalink
Tweak descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Nov 29, 2024
1 parent 9758b21 commit 39bf590
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/components/src/form-file-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<p class="callout callout-info">See the <a href="https://wordpress.github.io/gutenberg/?path=/docs/components-formfileupload--docs">WordPress Storybook</a> for more detailed, interactive documentation.</p>

FormFileUpload is a component that allows users to select files from their local device.
FormFileUpload allows users to select files from their local device.

```jsx
import { FormFileUpload } from '@wordpress/components';
Expand Down Expand Up @@ -47,7 +47,9 @@ Children are passed as children of `Button`.

### `icon`

The icon to render in the `Button`.
The icon to render in the default button.

See the `Icon` component docs for more information.

- Type: `IconType`
- Required: No
Expand Down
4 changes: 3 additions & 1 deletion packages/components/src/form-file-upload/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export type FormFileUploadProps = {
*/
children?: ReactNode;
/**
* The icon to render in the `Button`.
* The icon to render in the default button.
*
* See the `Icon` component docs for more information.
*/
icon?: ComponentProps< typeof Icon >[ 'icon' ];
/**
Expand Down

0 comments on commit 39bf590

Please sign in to comment.