Skip to content

Commit

Permalink
Update Control Option Document
Browse files Browse the repository at this point in the history
The code sample was having incorrect highlights
  • Loading branch information
widoz authored Feb 18, 2024
1 parent 69bf599 commit e9ea968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/control-option.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ searchEntities: async (
Then you can access the extra properties within your component since the `CompositeEntitiesByKind` will pass
the `entities` of type `EntitiesSearch.BaseControl< E >` to the children.

```typescript
```jsx
(entities: EntitiesSearch.BaseControl< E >) => {
return <MyComponent {...entities} />;
}
```

And internally of your `MyComponent` you can access the `extra` property of the `ControlOption`:

```typescript
```jsx
function MyComponent(entities: Options<V>): JSX.Element {
return (
<div>
Expand Down

0 comments on commit e9ea968

Please sign in to comment.