PatternFly Elements are custom HTML elements that work everywhere.
The Card element has header and footer slots for things like
titles and actions.
- More about pf-v5-card
-
+ More about pf-v6-card
+
```
diff --git a/docs/docs/develop/import-maps.md b/docs/docs/develop/import-maps.md
index 48759e584d..a7d9738e45 100644
--- a/docs/docs/develop/import-maps.md
+++ b/docs/docs/develop/import-maps.md
@@ -31,14 +31,14 @@ Example:
```
@@ -65,7 +65,7 @@ Once you've generated your import map and added it to your project, you can use
```
diff --git a/docs/docs/develop/setup.md b/docs/docs/develop/setup.md
index f16330be1a..ab1db52ac4 100644
--- a/docs/docs/develop/setup.md
+++ b/docs/docs/develop/setup.md
@@ -107,7 +107,7 @@ npm run new -- --tagName pf-v5-cool-element
Running that command launches the demo app in a new browser tab, and refreshes the page on save.
From there you can navigate to the demo page of the element you're working on.
- For example, if you want to preview the `pf-v5-card` component, then navigate in the browser to `http://localhost:8000/demo/pf-v5-card/`.
+ For example, if you want to preview the `pf-v6-card` component, then navigate in the browser to `http://localhost:8000/components/v6-card/demo/`.
{% endband %}
{% band header="Testing" %}
diff --git a/docs/framework-integration/index.md b/docs/framework-integration/index.md
index f705f12b46..ca82401659 100644
--- a/docs/framework-integration/index.md
+++ b/docs/framework-integration/index.md
@@ -24,7 +24,7 @@ title: Framework integration
-
+
To get web components to work with Angular, there are a few steps that we need to take. If you’d like to
follow along, go ahead and...
Read on Medium
-
+
diff --git a/docs/framework-integration/react.md b/docs/framework-integration/react.md
index 52b146f474..f42af45e42 100644
--- a/docs/framework-integration/react.md
+++ b/docs/framework-integration/react.md
@@ -129,7 +129,7 @@ tags:
import { useState } from "react";
import { Button } from "@patternfly/elements/react/pf-v5-button/pf-v5-button.js";
- import { Card } from "@patternfly/elements/react/pf-v5-card/pf-v5-card.js";
+ import { Card } from "@patternfly/elements/react/pf-v6-card/pf-v6-card.js";
import { Switch } from "@patternfly/elements/react/pf-v6-switch/pf-v6-switch.js";
import { Popover } from "@patternfly/elements/react/pf-v5-popover/pf-v5-popover.js";
import { Tooltip } from "@patternfly/elements/react/pf-v6-tooltip/pf-v6-tooltip.js";
@@ -137,7 +137,7 @@ tags:
import "./App.css";
```
- Let’s use [`pf-v5-button`][pf-v5-button] and [`pf-v5-card`][pf-v5-card] component in the
+ Let’s use [`pf-v5-button`][pf-v5-button] and [`pf-v6-card`][pf-v6-card] component in the
`App` function in the `App.tsx` file to see that our Card and Button are
working. We are updating the local state and showing it in the UI after
clicking the button.
@@ -354,7 +354,7 @@ tags:
[react-lifecycle]: https://legacy.reactjs.org/docs/state-and-lifecycle.html
[vite]: https://vitejs.dev/guide/#scaffolding-your-first-vite-project
[pf-v5-button]: https://patternflyelements.org/components/button/
-[pf-v5-card]: https://patternflyelements.org/components/card/
+[pf-v6-card]: https://patternflyelements.org/components/card/
[pf-v6-switch]: https://patternflyelements.org/components/switch/
[pf-v6-tooltip]: https://patternflyelements.org/components/tooltip/
[pf-v5-popover]: https://patternflyelements.org/components/popover/
diff --git a/docs/framework-integration/vue.md b/docs/framework-integration/vue.md
index 6f1008b623..805c4583d4 100644
--- a/docs/framework-integration/vue.md
+++ b/docs/framework-integration/vue.md
@@ -41,7 +41,7 @@ tags:
{% band header="Adding PatternFly Elements" %}
With the setup complete, let’s add a couple of PatternFly Elements web
components to our application to make sure everything is hooked up properly.
- We’re going to add a card ([pf-v5-card](/components/card)). Later, we’ll add an
+ We’re going to add a card ([pf-v6-card](/components/card)). Later, we’ll add an
accordion ([pf-v5-accordion](/components/accordion)) and some CSS to help with
our layout.
@@ -60,7 +60,7 @@ tags:
```html
```
@@ -65,18 +65,18 @@ title: Get started
When you have the import map script loaded on the page, you can add a [card component](/components/card) using html.
```html
-
+
Card header
-
This is the pf-v5-card body.
+
This is the pf-v6-card body.
OK
-
+
```
-
+
Card header
-
This is the pf-v5-card body.
+
This is the pf-v6-card body.
OK
-
+
### Importmap and Markup
@@ -91,18 +91,18 @@ Altogether your import map code could look something like this [Lit Playground D
component to see which attributes are available.
```html
-
+
Card header
-
This is the pf-v5-card body.
+
This is the pf-v6-card body.
OK
-
+
```
-
+
Card header
-
This is the pf-v5-card body.
+
This is the pf-v6-card body.
OK
-
+
{% endband %}
{% band header="Use CSS variables to customize or theme your components" %}
@@ -116,14 +116,14 @@ Altogether your import map code could look something like this [Lit Playground D
```css
/* your-page.css */
:root {
- --pf-v5-c-card--BackgroundColor: var(--pf-global--active-color--200, #bee1f4);
+ --pf-v6-c-card--BackgroundColor: var(--pf-t--global--color--brand--100, #bee1f4);
}
```
-
+
Card header
-
This is the pf-v5-card body.
- OK
-
+
This is the pf-v6-card body.
+
+
{% endband %}
{% band header="Avoiding the flash of unstyled content (FOUC)" %}
@@ -148,12 +148,12 @@ Altogether your import map code could look something like this [Lit Playground D
--reveal-duration: 0.2s;
}
- pf-v5-card {
+ pf-v6-card {
opacity: 1;
transition: opacity var(--reveal-duration) ease var(--reveal-delay);
}
- pf-v5-card:not(:defined) {
+ pf-v6-card:not(:defined) {
opacity: 0;
}
@@ -161,18 +161,18 @@ Altogether your import map code could look something like this [Lit Playground D
-
+
-
+
No FOUC
Content will remain hidden until component definitions are loaded.