Carbon Labs - Ui Shell
npm install @carbon-labs/react-ui-shellThe @carbon-labs/react-ui-shell package extends UI Shell components from@carbon/react, providing additional enhancements while maintaining
compatibility.
To install @carbon-labs/react-ui-shell in your project, you will need to run
the following command using npm:
``bash`
npm install -S @carbon-labs/react-ui-shell @carbon/react
If you prefer Yarn, use the following command
instead:
`bash`
yarn add @carbon-labs/react-ui-shell @carbon/react
To use this package you will need to import components from both @carbon/react@carbon-labs/react-ui-shell
and to compose the UI Shell. The following@carbon-labs/react-ui-shell
components are provided by :
- HeaderDividerHeaderPopover
- HeaderPopoverActions
- HeaderPopoverButton
- HeaderPopoverContent
- Profile
- SideNav
- SideNavItems
- SideNavLink
- SideNavMenu
- SideNavMenuItem
- SideNavSlot
- SideNavTitle
- TrialCountdown
-
`jsx
import { SideNav } from '@carbon-labs/react-ui-shell';
import { Header } from '@carbon/react';
function MyComponent() {
return (
);
}
`
Import the styles from @carbon/react and @carbon-labs/react-ui-shell in your
stylesheet:
`scss`
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon-labs/react-ui-shell/scss/ui-shell';
You can explore the available components, see different configuration options,
and learn how to compose them in
Storybook.
Want to contribute to @carbon-labs`? Read through the Carbon Labs
contribution section
before diving into our developer guide:
See the latest updates and version history in the
changelog.
Licensed under the
Apache 2.0 License.
This package uses IBM Telemetry to collect de-identified and anonymized metrics
data. By installing this package as a dependency you are agreeing to telemetry
collection. To opt out, see
Opting out of IBM Telemetry data collection.
For more information on the data being collected, please see the
IBM Telemetry documentation.