DocumentationHooksuseToggleuseToggle Toggle a state between a given array of values. DemoCodeToggle Type Definitions const useToggle: <T>(args: { values: T[]; startIndex?: number; }) => readonly [T | undefined, (value?: React.SetStateAction<T>) => void];useTimeoutuseViewport