Skip to content

Commit

Permalink
Update optional component example
Browse files Browse the repository at this point in the history
  • Loading branch information
barryceelen committed Dec 3, 2024
1 parent 08ba8e8 commit ecdee1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/optional/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ A component that takes care of the logic of rendering nodes only when it is sele
## Usage

```js
import { Optional } from '@10up/block-components';

const BlockEdit = (props) => {
const { attributes, setAttributes, isSelected } = props;
const { title } = attributes;
Expand Down

0 comments on commit ecdee1f

Please sign in to comment.