@ankr.com/cross-navigation
v3.0.4
Published
* remove `theme`, `customIdSuffix` in props * remove `import '@ankr.com/cross-navigation/style.css';` in project * remove `react-modern-drawer` from package.json
Readme
Migration from v2 to v3
Now this component inherits the MUI theme of an application
remove
theme,customIdSuffixin propsremove
import '@ankr.com/cross-navigation/style.css';in projectremove
react-modern-drawerfrom package.jsonIMPORTANT
You must use MUI theme utils from
'@mui/material'instead'@mui/styles'in your project for correctly providing the theme to this component
Requirements
Added in v3
- "@mui/material": "^5.15.14",
- "@mui/styles": "^5.15.14",
- "tss-react": "^4.9.4"
Installation
npm:
npm install @ankr.com/cross-navigationyarn:
yarn add @ankr.com/cross-navigationUsage
import { CrossNavigation, LogoType } from '@ankr.com/cross-navigation';
// ...
<CrossNavigation logoType={LogoType.ANKR} />Required styles
import '@ankr.com/assets/public/fonts/index.css';Alternative fonts import
<link
rel="preconnect"
href="https://assets.ankr.com"
crossOrigin=""
/>
<link
href="https://assets.ankr.com/fonts/index.css"
rel="stylesheet"
/>