UNPKG
@visa/nova-react
Version:
latest (3.1.0)
3.1.0
3.0.0
2.5.4
2.5.3
2.5.2
Visa Product Design System Nova React library. Compatible with React ^19.
@visa/nova-react
/
switch
/
index.mjs
2 lines
(1 loc)
•
217 B
JavaScript
View Raw
1
2
import
{jsx
as
t}
from
"react/jsx-runtime"
;
import
s
from
"clsx"
;
const
a
=(
{className:a,tag:c=
"input"
,...e}
)=>
t
(c,{
className
:
s
(
"v-switch"
,a),
role
:
"switch"
,
type
:
"checkbox"
,...e});a.
displayName
=
"Switch"
;
export
{a
as
default
};