Skip to content

Commit

Permalink
Merge pull request #350 from 10up/feature/update-optional-component-r…
Browse files Browse the repository at this point in the history
…eadme

Update Optional component code example
  • Loading branch information
fabiankaegy authored Dec 3, 2024
2 parents 08ba8e8 + ecdee1f commit ca173eb
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 ca173eb

Please sign in to comment.