Skip to content

Commit

Permalink
Docs: Update Block Title Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishit30G committed Mar 3, 2025
1 parent 7c02f29 commit 33b768f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/block-editor/src/components/block-title/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The component will be empty if a title cannot be determined.
## Usage

```jsx
<BlockTitle clientId="afd1cb17-2c08-4e7a-91be-007ba7ddc3a1" maximumLength={ 12 }/>
<BlockTitle clientId="afd1cb17-2c08-4e7a-91be-007ba7ddc3a1" maximumLength={ 12 } context="list-view" />
```

### Props
Expand All @@ -28,3 +28,10 @@ The maximum length that the block title string may be before truncated. If `unde

- Type: `Number`
- Required: No

#### context

The context to pass to `getBlockLabel`.

- Type: `String`
- Required: No

0 comments on commit 33b768f

Please sign in to comment.