UNPKG

@clayui/form

Version:
24 lines (23 loc) 711 B
/** * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: BSD-3-Clause */ import React from 'react'; interface IToggleProps extends React.InputHTMLAttributes<HTMLInputElement> { containerProps?: React.HTMLAttributes<HTMLSpanElement>; disabled?: boolean; id?: string; label?: React.ReactText; onToggle?: (val: boolean) => void; sizing?: string; spritemap?: string; symbol?: { on: string; off: string; }; toggled?: boolean; type?: 'checkbox' | 'radio'; value?: string; } declare const Toggle: React.ForwardRefExoticComponent<IToggleProps & React.RefAttributes<HTMLLabelElement>>; export default Toggle;