Debian Codegraph @

node/@patternfly/patternfly/docs/layouts/Bullseye/examples/Bullseye.md

raw
1 ---
2 id: Bullseye
3 section: foundations-and-styles
4 subsection: layouts
5 cssPrefix: pf-v6-l-bullseye
6 ---import './Bullseye.css'
7
8 ## Examples
9
10 ### Basic
11
12 ```html
13 <div class="pf-v6-l-bullseye">
14 <div class="pf-v6-l-bullseye__item">content</div>
15 </div>
16
17 ```
18
19 ## Documentation
20
21 ### Overview
22
23 The bullseye layout is designed to center a single child element horizontally and vertically within its parent.
24
25 ### Usage
26
27 | Class | Applied to | Outcome |
28 | -- | -- | -- |
29 | `.pf-v6-l-bullseye` | `<div>` | Initializes the bullseye layout. A bullseye can only have one child. |
30 | `.pf-v6-l-bullseye__item` | `<div>` | Explicitly sets the child for the bullseye. This class isn't necessary, but it is included to keep inline with BEM convention, and to provide an entity that will later be used for applying modifiers. |