node/@patternfly/react-core/src/components/Hero/examples/Hero.md
raw| 1 | --- |
| 2 | id: Hero |
| 3 | section: components |
| 4 | cssPrefix: pf-v6-c-hero |
| 5 | beta: true |
| 6 | propComponents: ['Hero'] |
| 7 | --- |
| 8 | |
| 9 | ## Examples |
| 10 | |
| 11 | ### Basic |
| 12 | |
| 13 | If you need finer control over the placement of text content within the `<Hero>`, such as when you omit a background image, adjust the `bodyWidth` and `bodyMaxWidth` properties. Be mindful of using these properties when a background image is still present and ensure there is sufficient contrast between text and any part of the image that it overlaps. |
| 14 | |
| 15 | When using `gradientLight` or `gradientDark` to apply gradient backgrounds, check the color contrast to ensure proper accessibility. |
| 16 | |
| 17 | ```ts file="HeroBasic.tsx" |
| 18 | |
| 19 | ``` |