@patternfly/react-core APIs
- Button
- Title
- Spinner
- EmptyState
- EmptyStateIcon
- EmptyStateBody
- Stack
- StackItem
- TextInput
- Bullseye
- Modal
- FormGroup
- Card
- CardBody
- Flex
- Text
- Form
- Split
- SplitItem
- Tooltip
- PageSection
- FlexItem
- Grid
- GridItem
- Pagination
- Dropdown
- DropdownItem
- Label
- Page
- TextContent
- TextVariants
- Checkbox
- InputGroup
- DropdownToggle
- Popover
- Breadcrumb
- BreadcrumbItem
- Tabs
- Tab
- TabTitleText
- Alert
- Toolbar
- CardTitle
- KebabToggle
- DataList
- DataListCell
- DataListItem
- DataListItemCells
- DataListItemRow
- TextArea
- ActionGroup
- PageSectionVariants
- FormSelect
- FormSelectOption
- ToolbarItem
- ToolbarContent
- Select
- SelectOption
- ChipGroup
- Chip
- DropdownPosition
- CardFooter
- EmptyStateSecondaryActions
- PaginationVariant
- ModalVariant
- AlertGroup
- Switch
- CardHeader
- DatePicker
- Wizard
- DropdownToggleCheckbox
- ExpandableSection
- LabelGroup
- TextListItem
- TextList
- Skeleton
- ClipboardCopy
- ToggleGroup
- ToggleGroupItem
- AlertActionCloseButton
- AlertActionLink
- AlertVariant
- Badge
- Radio
- Nav
- NavList
- ValidatedOptions
- Brand
- PageHeader
- PageHeaderTools
- PageHeaderToolsItem
- PageSidebar
- WizardContextConsumer
- EmptyStatePrimary
- BreadcrumbHeading
- TextListVariants
- TextListItemVariants
- Backdrop
- HelperText
- HelperTextItem
- Gallery
- GalleryItem
- ModalBoxFooter
- DualListSelector
- DualListSelectorPane
- DualListSelectorList
- DualListSelectorListItem
- DualListSelectorControlsWrapper
- DualListSelectorControl
- InputGroupText
- Divider
- SearchInput
- PopoverPosition
- FormHelperText
- EmptyStateVariant
- DescriptionList
- DescriptionListGroup
- DescriptionListTerm
- DescriptionListDescription
- TooltipPosition
- SelectVariant
- AboutModal
- PageHeaderToolsGroup
- TabTitleIcon
- DropdownDirection
- FormAlert
- LoginMainFooterBandItem
- LoginPage
- LoginMainFooterLinksItem
- DataListAction
- CardActions
- NavItem
- ApplicationLauncher
- ApplicationLauncherItem
- ApplicationLauncherGroup
- NavExpandable
OtherRelated APIs
- gatsby#Link
- gatsby#useStaticQuery
- gatsby#graphql
- @patternfly/react-core#Page
- @patternfly/react-core#Alert
- @patternfly/react-core#AlertGroup
- @patternfly/react-core#AlertActionLink
- @patternfly/react-core#AlertVariant
- @patternfly/react-core#Nav
- @patternfly/react-core#NavList
- @patternfly/react-core#NavExpandable
@patternfly/react-core#PageSidebar JavaScript Examples
The following examples show how to use
@patternfly/react-core#PageSidebar.
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: ibutsu-page.js From ibutsu-server with MIT License | 6 votes |
![]() ![]() |
render() {
document.title = this.props.title || 'Ibutsu';
return (
<React.Fragment>
<AlertGroup isToast>
{this.state.notifications.map((notification) => (
<Alert key={notification.key} variant={notification.type} title={notification.title} actionLinks={notification.action} isLiveRegion>
{notification.message}
</Alert>
))}
</AlertGroup>
<Page header={<IbutsuHeader eventEmitter={this.props.eventEmitter} version={this.state.version} />} sidebar={<PageSidebar nav={this.props.navigation} theme="dark" />} isManagedSidebar={true} style={{position: "relative"}}>
{this.props.children}
</Page>
</React.Fragment>
);
}
Example #2
Source File: NavSidebar.js From operate-first.github.io-old with GNU General Public License v3.0 | 5 votes |
![]() ![]() |
NavSidebar = ({ isNavOpen, location }) => {
const navData = useStaticQuery(
graphql`
{
navData {
navItems {
id
label
href
links {
id
label
remote
href
}
}
}
}
`
).navData.navItems;
// No Sidebar for mainpage
if (location.pathname === '/') {
return <div />;
}
return (
<PageSidebar
isNavOpen={isNavOpen}
nav={
<Nav className="nav" theme="dark" aria-label="Nav">
<NavList>
{location &&
navData.map((node) => <NavGroup key={node.id} {...node} location={location} />)}
</NavList>
</Nav>
}
theme="dark"
/>
);
}