Skip to content

Commit 607df76

Browse files
rvsiaHyperkid123
authored andcommitted
Update documenation to latest PF4
1 parent d0c4e51 commit 607df76

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
**Props**
2+
3+
Accepts same props as the original component.
4+
5+
**Tab item props**
6+
7+
|name|type|default|target component|
8+
|----|----|-------|----------------|
9+
|title|`string | node`|String is automatically wrapped by `<TabTitleText />` component.|

packages/react-renderer-demo/src/doc-components/examples-texts/pf4/pf4-wizard.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ Don't forget hide form controls by setting \`showFormControls\` to \`false\` as
1111
| buttonLabels | object | see below | Labels for buttons |
1212
| inModal | bool | undefined | show form in modal |
1313
| container | HTMLElement | 'div' | element containing the modal |
14-
| isCompactNav | bool | undefined | see Patternfly |
15-
| setFullWidth | bool | undefined | see Patternfly |
16-
| setFullHeight | bool | undefined | see Patternfly |
1714
| isDynamic | bool | undefined | will dynamically generate steps navigation (=progressive wizard), please use if you use any condition fields which changes any field in other steps (wizards with conditional steps are dynamic by default) |
1815
|showTitles|bool|undefined|If true, step titles will be shown in the wizard body|
1916
|crossroads|array|undefined|Array of field names, which change next steps|
2017

18+
Also accepts these props from the original component: `titleId`, `descriptionId`, `hideClose`, `hasNoBodyPadding`, `navAriaLabel` and `closeButtonAriaLabel`.
19+
2120
**Default buttonLabels**
2221

2322
```jsx
@@ -161,7 +160,7 @@ If the value is different, a new primary step is created with the step as a subs
161160

162161
**First step**
163162

164-
First step should have on the first position of the `fields` array.
163+
First step should have on the first position of the `fields` array.
165164

166165
**Variants of Wizard**
167166

packages/react-renderer-demo/src/doc-components/tabs.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import MuiTabs from './examples-texts/mui/mui-tabs.md';
44
import SuirTabs from './examples-texts/suir/suir-tabs.md';
5+
import Pf4Tabs from './examples-texts/pf4/pf4-tabs.md';
6+
57
import GenericMuiComponent from '../helpers/generic-mui-component';
68

79
const Tabs = ({ activeMapper }) => {
@@ -13,6 +15,10 @@ const Tabs = ({ activeMapper }) => {
1315
return <SuirTabs />;
1416
}
1517

18+
if (activeMapper === 'pf4') {
19+
return <Pf4Tabs />;
20+
}
21+
1622
return <GenericMuiComponent activeMapper={activeMapper} component="tabs" />;
1723
};
1824

0 commit comments

Comments
 (0)