Debian Codegraph @

node/@patternfly/patternfly/docs/components/Brand/examples/Brand.md

raw
1 ---
2 id: Brand
3 section: components
4 ---import './Brand.css'
5
6 ## Examples
7
8 ### Basic
9
10 ```html
11 <div class="show-light">
12 <img
13 class="pf-v6-c-brand"
14 src="/assets/images/PF-HorizontalLogo-Color.svg"
15 alt="PatternFly logo"
16 />
17 </div>
18
19 <div class="show-dark">
20 <img
21 class="pf-v6-c-brand"
22 src="/assets/images/PF-HorizontalLogo-Reverse.svg"
23 alt="PatternFly logo"
24 />
25 </div>
26
27 ```
28
29 ### Responsive
30
31 ```html
32 <div class="show-light">
33 <picture
34 class="pf-v6-c-brand pf-m-picture"
35 style="--pf-v6-c-brand--Width: 37px; --pf-v6-c-brand--Width-on-md: 220px;"
36 >
37 <source
38 media="(min-width: 768px)"
39 srcset="/assets/images/PF-HorizontalLogo-Color.svg"
40 />
41 <source srcset="/assets/images/PF-IconLogo-color.svg" />
42 <img
43 src="/assets/images/PF-HorizontalLogo-Color.svg"
44 alt="Fallback patternFly default logo"
45 />
46 </picture>
47 </div>
48
49 <div class="show-dark">
50 <picture
51 class="pf-v6-c-brand pf-m-picture"
52 style="--pf-v6-c-brand--Width: 37px; --pf-v6-c-brand--Width-on-md: 220px;"
53 >
54 <source
55 media="(min-width: 768px)"
56 srcset="/assets/images/PF-HorizontalLogo-Reverse.svg"
57 />
58 <source srcset="/assets/images/PF-IconLogo-Reverse.svg" />
59 <img
60 src="/assets/images/PF-HorizontalLogo-Color.svg"
61 alt="Fallback patternFly default logo"
62 />
63 </picture>
64 </div>
65
66 ```
67
68 ## Documentation
69
70 ### Overview
71
72 Simple brand component.
73
74 ### Accessibility
75
76 | Attribute | Applied to | Outcome |
77 | -- | -- | -- |
78 | `alt` | `.pf-v6-c-brand` | The alt attribute specifies an alternate text for an image, if the image cannot be displayed. **Required** |
79
80 ### Usage
81
82 | Class | Applied to | Outcome |
83 | -- | -- | -- |
84 | `.pf-v6-c-brand` | `<img>, <picture>` | Initiates a brand image. **Required** |
85 | `.pf-m-picture` | `.pf-v6-c-brand` | Modifies a brand image to a picture. |
86 | `--pf-v6-c-brand--Width{-on-[breakpoint]}: {width}` | `.pf-v6-c-brand` | Modifies the width value of a picture on optional [breakpoint](/foundations-and-styles/design-tokens/all-design-tokens). |
87 | `--pf-v6-c-brand--Height{-on-[breakpoint]}: {height}` | `.pf-v6-c-brand` | Modifies the height value of a picture on optional [breakpoint](/foundations-and-styles/design-tokens/all-design-tokens). |