Skip to content

Commit 3dad731

Browse files
elisenyangElise Yang
andauthored
add person card with presence sample to mgt.dev (#498)
Co-authored-by: Elise Yang <[email protected]>
1 parent 035ab3e commit 3dad731

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

stories/components/personCard.stories.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,29 @@ export const personCardInheritDetails = () => html`
6161
(Hover on person to view Person Card)
6262
</div>
6363
`;
64+
65+
export const personCardWithPresence = () => html`
66+
<script>
67+
const available = {
68+
activity: 'Available',
69+
availability: 'Available',
70+
id: null
71+
};
72+
73+
document.getElementById('with-presence').personPresence = available;
74+
</script>
75+
<style>
76+
.note {
77+
margin: 2em 0 0 1em;
78+
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto,
79+
'Helvetica Neue', sans-serif;
80+
color: #323130;
81+
font-size: 12px;
82+
}
83+
</style>
84+
<mgt-person id="with-presence" person-query="me" person-card="hover" view="twoLines" show-presence></mgt-person>
85+
86+
<div class="note">
87+
(Hover on person to view Person Card)
88+
</div>
89+
`;

0 commit comments

Comments
 (0)