@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
@patternfly/react-core#EmptyStateVariant JavaScript Examples
The following examples show how to use
@patternfly/react-core#EmptyStateVariant.
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: EmptyStateDisplay.js From tasks-frontend with Apache License 2.0 | 6 votes |
EmptyStateDisplay = ({
button,
color,
error,
icon,
isSmall,
text,
title,
}) => {
return (
<EmptyState
variant={isSmall ? EmptyStateVariant.small : EmptyStateVariant.large}
>
{icon ? (
<EmptyStateIcon
icon={icon}
color={color ? color : null}
className={isSmall ? 'small-empty-state-icon' : null}
/>
) : null}
<br></br>
<Title headingLevel={isSmall ? 'h5' : 'h1'} size={isSmall ? 'md' : 'lg'}>
{title}
</Title>
<EmptyStateBody>
{text
? text.map((line, index) => (
<React.Fragment key={`line-${index}`}>
{line}
<br />
</React.Fragment>
))
: null}
{error ? error : null}
</EmptyStateBody>
{button}
</EmptyState>
);
}
Example #2
Source File: NoResultsTable.js From tasks-frontend with Apache License 2.0 | 6 votes |
NoResultsTable = ({ type }) => (
<EmptyTable>
<Bullseye>
<EmptyState variant={EmptyStateVariant.full}>
<Title headingLevel="h5" size="lg">
{`No matching ${type} found`}
</Title>
<EmptyStateBody>
To continue, edit your filter settings and search again.
</EmptyStateBody>
</EmptyState>
</Bullseye>
</EmptyTable>
)