chore: added some more lines of documentation

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-08-30 13:52:36 +02:00
parent 16db8192ff
commit df1504c9ca
@@ -21,12 +21,14 @@ Field extensions are a way to combine an ID, a `React` Component and a
`validation` function together in a modular way that you can then use to pass to
the `Scaffolder` frontend plugin in your own `App.tsx`.
You can create your own Field Extension by using the `createScaffolderFieldExtension` `API` like below:
You can create your own Field Extension by using the
`createScaffolderFieldExtension` `API` like below:
```tsx
//packages/app/scaffolder/
const CustomFieldExtensionComponent = () => {
}
//packages/app/scaffolder/MyCustomExtension/MyCustomExtension.tsx
export const MyCustomExtension = () => {};
```
```tsx
// packages/app/scaffolder/MyCustomExtension/validation.ts
```