Skip to content

Commit 5465d4b

Browse files
committed
fix(gallery): Add gallery to the about page
1 parent 87dd01d commit 5465d4b

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

packages/module/patternfly-docs/content/extensions/component-groups/about-component-groups.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,27 @@ id: About component groups
44
sortValue: 1
55
sourceLink: https://github.com/patternfly/react-component-groups/blob/main/packages/module/patternfly-docs/content/extensions/component-groups/about-component-groups.md
66
---
7+
import { SectionGallery } from '@patternfly/documentation-framework/components/sectionGallery/sectionGallery';
8+
import galleryData from './gallery-data.json';
79

810
Component groups lives in its own package [`@patternfly/react-component-groups`](https://www.npmjs.com/package/@patternfly/react-component-groups)
911

1012
# Component groups
1113

12-
The component groups extension contains a range of React components that are more complex than basic PatternFly components. These component groups combine and adjust multiple base components to provide opinionated solutions for recurring use cases across products using PatternFly.
14+
The component groups extension contains a range of React components that are more complex than basic PatternFly components. These component groups combine and adjust multiple base components to provide opinionated solutions for recurring use cases across products using PatternFly.
1315

14-
The creation and maintenance of this extension is a collaborative effort between the PatternFly and Red Hat Hybrid Cloud Console teams. All component groups receive accessibility and design reviews, and we are working to improve internationalization, add unit test coverage, and ensure that CSS overrides all correctly reference the PatternFly CSS API.
16+
The creation and maintenance of this extension is a collaborative effort between the PatternFly and Red Hat Hybrid Cloud Console teams. All component groups receive accessibility and design reviews, and we are working to improve internationalization, add test coverage, and ensure that CSS overrides all correctly reference the PatternFly CSS API.
17+
18+
Below, you can see a gallery of categories representing the components:
19+
20+
<SectionGallery
21+
section="Component groups"
22+
galleryItemsData={galleryData}
23+
placeholderText="Search component groups by name"
24+
includeSubsections={true}
25+
hasGridText={true}
26+
isFullWidth={false}
27+
/>
1528

1629
**Note:** This extension replaces [`RedHatInsights/frontend-components`](https://github.com/RedHatInsights/frontend-components). If you previoulsy used `frontend-components`, you can refer to [this migration guide](https://github.com/patternfly/react-component-groups/blob/main/migration.md) to help you transition to `react-component-groups`.
1730

@@ -25,4 +38,4 @@ Specific contribution guidelines and instructions are outlined in [the component
2538

2639
We aim to align the standards of component groups as closely as possible with existing PatternFly standards. Given that this is a multi-team collaboration, we will continue to work towards this goal together.
2740

28-
If you notice a bug or have a suggestion for a new component group, feel free to file an issue in our [GitHub repository](https://github.com/patternfly/react-component-groups/issues)! Please make sure to check if there is already a pre-existing issue before creating a new issue.
41+
If you notice a bug or have a suggestion for a new component group, open an issue in our [GitHub repository](https://github.com/patternfly/react-component-groups/issues)! Please make sure to check if there is already a pre-existing issue before creating a new one.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"content-containers": {
3+
"summary": "Provide layout components to organize and display content in structured and flexible formats."
4+
},
5+
"controls": {
6+
"summary": "Include components that manage user interactions and input, enabling intuitive navigation and selection."
7+
},
8+
"error-communication": {
9+
"summary": "Contain various error and alert states to communicate issues or restrictions."
10+
},
11+
"helpers": {
12+
"summary": "Offer utility components that enhance usability and provide additional guidance or information within the UI."
13+
},
14+
"status-and-state-indicators": {
15+
"summary": "Visualize entity states, statuses, and loading indicators to inform users of system conditions or processes."
16+
}
17+
}

0 commit comments

Comments
 (0)