import type { InputHTMLAttributes } from 'react'
import React, { forwardRef } from 'react'
import { Icon, Input } from './../../'
export interface ToggleProps
extends InputHTMLAttributes> {
/**
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
*/
testId?: string
/**
* ID to identify input and corresponding label.
*/
id: string
/**
* Specifies that this input should be disabled.
*/
disabled?: boolean
/**
* Controls the component's direction.
*/
variant?: 'horizontal' | 'vertical'
}
const Toggle = forwardRef(function Toggle(
{
testId = 'fs-toggle',
id,
disabled,
variant = 'horizontal',
...otherProps
}: ToggleProps,
ref
) {
return (
)
})
export default Toggle