This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* `createFlagSchema` will use the schema passed in for type definitio | |
* as well as creating an autocomplete functi | |
* and a minor validation setup for using flags | |
* @param flagSchema The schema object for the flags, the output type of the `flags` function return is based on this | |
* @param args The default arguments outside the flags | |
* @returns | |
* @example | |
* ```ts | |
* const flagSchema = createFlagSchema( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { | |
forwardRef, | |
HTMLAttributes, | |
useEffect, | |
useImperativeHandle, | |
useRef, | |
useState, | |
} from 'react'; | |
import { DataSet } from 'vis-data'; | |
import { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Controller, useForm } from 'react-hook-form'; | |
import { Form, Button, Checkbox } from 'semantic-ui-react'; | |
import WField from './WField'; | |
export function Usage() { | |
const { handleSubmit, control, errors } = useForm<{ | |
input: string; | |
checkbox: boolean; | |
textarea: string; | |
select: string; |