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
* useProvider docs
* forgot to remove extraneous section
* adding margin and renaming component
* fixing some of the langauge
* updating useProvider example
* a little more complex example
* update copy a bit
* forgot to use spectrum var here
* ugh tabbing fixes and small adjustments to positioning
* Update docs
Co-authored-by: Devon Govett <[email protected]>
The <TypeLinklinks={docs.links}type={docs.exports.useProvider} /> hook can be used to access the various properties applied by the nearest parent Provider. This can be useful for adapting a custom component to the current color scheme or scale.
155
+
156
+
The example below uses the `colorScheme` returned from `useProvider` to display either a moon or sun icon depending on the current color scheme. Toggle the theme using the switcher in the top right corner of the page to see the icon change.
0 commit comments