UNPKG
@vchatcloud/react-ui-kit
Version:
latest (1.0.9)
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
VChatCloud UI Kit for react integration
www.vchatcloud.com
@vchatcloud/react-ui-kit
/
dist
/
components
/
common
/
Toggle.d.ts
8 lines
(7 loc)
•
268 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
interface
ToggleProps
{
readonly
label
?:
string
;
readonly
value
:
boolean
;
readonly
onChange
?:
(
newValue
:
boolean
) =>
void
; }
declare
const
Toggle
:
(
{ label, value, onChange }:
ToggleProps
) =>
import
(
"react/jsx-runtime"
).
JSX
.
Element
;
export
default
Toggle
;