This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add header examples to the main site page
- Loading branch information
ry061521
committed
Sep 19, 2023
1 parent
85aec42
commit 2c96078
Showing
4 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...s/terra-clinical-item-view/src/terra-dev-site/doc/example/ItemViewTwoColumnWithHeader.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import Heading from 'terra-heading'; | ||
import IconBriefcase from 'terra-icon/lib/icon/IconBriefcase'; | ||
import IconPerson from 'terra-icon/lib/icon/IconPerson'; | ||
import ItemView from 'terra-clinical-item-view'; | ||
|
||
const display1 = <ItemView.Display icon={<IconPerson />} iconAlignment="inline" text="Asif Khan" />; | ||
const display2 = <ItemView.Display icon={<IconBriefcase />} iconAlignment="inline" text="Care Position: Primary" />; | ||
const display3 = <ItemView.Display text="Room 100A" />; | ||
const display4 = <ItemView.Display text="Acuity: 5" />; | ||
const display5 = <ItemView.Display text="Start Time: 08-05-2016 12:00:00" />; | ||
const display6 = <ItemView.Display text="End Time: 08-05-2016 16:00:00" />; | ||
const displays = [display1, display2, display3, display4, display5, display6]; | ||
|
||
export default () => ( | ||
<div> | ||
<Heading id="heading" level={5}>Patient Information</Heading> | ||
<ItemView displays={displays} layout="twoColumns" /> | ||
</div> | ||
); |
19 changes: 19 additions & 0 deletions
19
packages/terra-clinical-item-view/src/terra-dev-site/doc/example/ItemViewWithHeader.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import Heading from 'terra-heading'; | ||
import IconPerson from 'terra-icon/lib/icon/IconPerson'; | ||
import ItemView from 'terra-clinical-item-view'; | ||
|
||
const display1 = <ItemView.Display icon={<IconPerson />} iconAlignment="inline" text="Asif Khan" />; | ||
const display2 = <ItemView.Display text="Care Position: Primary" />; | ||
const display3 = <ItemView.Display text="Room 100A" />; | ||
const display4 = <ItemView.Display text="Acuity: 5" />; | ||
const display5 = <ItemView.Display text="Start Time: 08-05-2016 12:00:00" />; | ||
const display6 = <ItemView.Display text="End Time: 08-05-2016 16:00:00" />; | ||
const displays = [display1, display2, display3, display4, display5, display6]; | ||
|
||
export default () => ( | ||
<div> | ||
<Heading id="heading" level={5}>Patient Information</Heading> | ||
<ItemView displays={displays} /> | ||
</div> | ||
); |