styled-components/macro#ThemeProvider TypeScript Examples
The following examples show how to use
styled-components/macro#ThemeProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: app.tsx From covid-19 with MIT License | 6 votes |
function App() {
return (
<ThemeProvider theme={theme}>
<GlobalStyles />
<AppContainer>
<Router>
<Switch>
<Route exact path="/">
<GoodbyePage />
</Route>
<Route path="*">
<Redirect to="/" />
</Route>
</Switch>
</Router>
</AppContainer>
</ThemeProvider>
)
}
Example #2
Source File: chatbot.tsx From covid-19 with MIT License | 6 votes |
Chatbot: React.FC<Props & Record<string, any>> = ({
steps,
...rest
}) => {
const transformedSteps = useMemo(() => steps.map(transformStep), [steps])
return (
<ThemeProvider theme={makeTheme}>
<StyledChatbot
{...rest}
steps={transformedSteps}
hideHeader
hideUserAvatar
botAvatar={overrides.images.botAvatar || chloe}
userDelay={DISABLE_DELAYS ? 0 : 400}
botDelay={DISABLE_DELAYS ? 0 : 400}
customDelay={DISABLE_DELAYS ? 0 : 400}
width="100%"
height="100%"
/>
</ThemeProvider>
)
}
Example #3
Source File: index.tsx From tezos-link with Apache License 2.0 | 6 votes |
Root = () => {
return (
<ThemeProvider theme={{ color: 'red' }}>
<GlobalStyle />
<Provider store={store}>
<Router>
<App history={history} />
</Router>
</Provider>
</ThemeProvider>
)
}