Base Implementations
For this example, it was created a new project by using CRA to simplify the understanding of the general structure of the template.
SDS Installation
To make sure sds packages are correctly added to you project, developers can use install-peerdeps
dependency to add sds-react-component package and all its peer dependencies. For more information you can check the following link.
Beside that, adding sds-themes package is optional so developers can have access to the theme tokens at the same time they can give automtic support for the dark-theme.
React Router Dom
This template has been done to be compatible with react-router-dom dependency, facilitating the navigation workflow through different views. Something important to keep in mind, is that this template is compatible with the newer and older versions of react-router-dom, so developers can use the version of their preference.
General Structure of the Project
Components List
React-Router-Dom components
BrowserRouter
Switch/Routes (Name depends on the version)
Route
NavLink
SDS Components
AppNavbar
AppNavbarGroup
AppNavbarCustomArea
AppNavbarItem
AppNavbarStaticItem
AppPage
AppPageNav
AppPageNavItem
AppPageNavNestedItem
AppPageActions
AppPageContent
Last updated