primaryColor
Type:
string
Default value:
"pink"
Description:
The primary color to default upon.
Last updated: 2.6.0 (09/06/2024)
The ValenceProvider provides every component in your app with the relevant styling and default values that they require to function correctly.
Within the root app file (usually App.tsx
or App.jsx
), import and add the ValenceProvider
:
import { ValenceProvider } from "@valence-ui/core"
function App() {
return (
<>
<ValenceProvider>
{/* Your app here */}
</ValenceProvider>
</>
)
}
export default App;
Every value that the ValenceProvider supplies to your app can be modified by passing in props to the component:
import { ValenceProvider } from "@valence-ui/core"
function App() {
return (
<>
<ValenceProvider
breakpoints={{
mobileWidth: 480,
tabletWidth: 768,
desktopLargeWidth: 1024,
tvWidth: 1440,
}}
>
{/* Your app here */}
</ValenceProvider>
</>
)
}
export default App;
Last updated
Was this helpful?