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
/
toggle
/
index.mjs
2 lines
(1 loc)
•
217 B
JavaScript
View Raw
1
2
import
{jsx
as
a}
from
"react/jsx-runtime"
;
import
e
from
"clsx"
;
const
l=
"v-toggle"
,o=
(
{className:o,iconOnly:s,tag:t=
"label"
,...m}
)=>
a
(t,{
className
:
e
(l,s&&
`
${l}
-icon`
,o),...m});o.
displayName
=
"Toggle"
;
export
{o
as
default
};