Set custom icon in switch component #4553
Replies: 1 comment
-
|
Hey @tiloburgey, the switch component that you can currently see on onyx.schwarz is not an onyx component, it is provided by VitePress. Currently we are using VItePress to build or documentation but we will build a new fully onyx-based showcase/documentation in the future. For placing a light/dark switch in your application, we recommend using the OnyxColorSchemeDialog component. We also offer a OnyxColorSchemeMenuItem component that you can easily place inside the user menu of your nav bar which includes the dialog internally. If I remember correctly, we do not plan to support custom icons in the OnyxSwitch itself. Maybe @SchwarzIT/onyx-ux can provide some more details here or correct me if I am wrong |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
as the title says I'd like to set a Icon for the switcher. In the Documentation I couldn't find a Slot/Prop, which would allow setting a different icon. On onyx.schwarz you are using it for the dark mode, I'd like to the same :)
BR
Tilo
Beta Was this translation helpful? Give feedback.
All reactions