UNPKG

@patternfly/patternfly

Version:

Assets, source, tooling, and content for PatternFly 4

69 lines (52 loc) 1.39 kB
--- id: Timestamp section: components cssPrefix: pf-v6-c-timestamp ---## Examples ### Basic ```html <span class="pf-v6-c-timestamp"> <time class="pf-v6-c-timestamp__text" datetime="2019-01-21T21:38" >Thursday, 21 January 2019, 9:38 PM EST</time> </span> <br /> <br /> <span class="pf-v6-c-timestamp"> <time class="pf-v6-c-timestamp__text" datetime="2019-01-21T21:38" >21 January 2019, 9:38 PM EST</time> </span> <br /> <br /> <span class="pf-v6-c-timestamp"> <time class="pf-v6-c-timestamp__text" datetime="2019-01-21T21:38" >21 Jan. 2019, 9:38 PM EST</time> </span> <br /> <br /> <span class="pf-v6-c-timestamp"> <time class="pf-v6-c-timestamp__text" datetime="2022-07-15T10:00">1 hour ago</time> </span> <br /> <br /> <span class="pf-v6-c-timestamp"> <time class="pf-v6-c-timestamp__text" datetime="2022-07-21">Tomorrow</time> </span> <br /> <br /> <span class="pf-v6-c-timestamp pf-m-help-text"> <time class="pf-v6-c-timestamp__text" datetime="2022-07-21">Tomorrow</time> </span> ``` ## Documentation ### Usage | Class | Applied to | Outcome | | -- | -- | -- | | `.pf-v6-c-timestamp` | `<span>` | Creates a timestamp. **Required** | | `.pf-v6-c-timestamp__text` | `<time>` | Creates the visual text of the timestamp. **Required** | | `.pf-m-help-text`| `.pf-v6-c-timestamp` | Modifies styling for a timestamp that has help text. |