View
The View component wraps the content of every route in the application with a scrolling container and some styling rules.
Usage
import { useTheme } from '@shopgate/engage/core';
function MyPageComponent() {
const { View } = useTheme();
return (
<View>
{/* your page content goes here */}
</View>
);
}
Props
Name | Type | Default | Description |
---|---|---|---|
children * | node | The content of the component. | |
background | string | themeConfig.colors.light |
The background color of the view. |