You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should use the context API to communicate between parent/child components. This allows for an infinite number of items to toggle through. This would be useful for things like dark mode toggles where you have multiple states: system | dark | light
Alternative idea: apply a Svelte action to a parent element. Then follow the same logic flow. Initially only the first item is visible, each tap toggles to the next, and when you reach the end it returns to the start to loop again.
Reference:
https://daisyui.com/components/swap/
Implementation should be as follows:
Should use the context API to communicate between parent/child components. This allows for an infinite number of items to toggle through. This would be useful for things like dark mode toggles where you have multiple states:
system | dark | light
Please follow our contribution guidelines when implementing any new component!
https://skeleton.brainandbonesllc.com/docs/contributions
The text was updated successfully, but these errors were encountered: