Skip to content

Commit e9ea968

Browse files
authored
Update Control Option Document
The code sample was having incorrect highlights
1 parent 69bf599 commit e9ea968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/control-option.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ searchEntities: async (
6161
Then you can access the extra properties within your component since the `CompositeEntitiesByKind` will pass
6262
the `entities` of type `EntitiesSearch.BaseControl< E >` to the children.
6363

64-
```typescript
64+
```jsx
6565
(entities: EntitiesSearch.BaseControl< E >) => {
6666
return <MyComponent {...entities} />;
6767
}
6868
```
6969

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

72-
```typescript
72+
```jsx
7373
function MyComponent(entities: Options<V>): JSX.Element {
7474
return (
7575
<div>

0 commit comments

Comments
 (0)