-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description list enhancements and fixes (#1419)
- Loading branch information
Showing
6 changed files
with
82 additions
and
7 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
31 changes: 31 additions & 0 deletions
31
src-docs/src/views/description_list/description_list_classes.js
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,31 @@ | ||
import React from 'react'; | ||
|
||
import { | ||
EuiDescriptionList, | ||
} from '../../../../src/components'; | ||
|
||
const favoriteVideoGames = [ | ||
{ | ||
title: 'The Elder Scrolls: Morrowind', | ||
description: 'The opening music alone evokes such strong memories.', | ||
}, | ||
{ | ||
title: 'TIE Fighter', | ||
description: 'The sequel to XWING, join the dark side and fly for the Emporer.', | ||
}, | ||
{ | ||
title: 'Quake 2', | ||
description: 'The game that made me drop out of college.', | ||
}, | ||
]; | ||
export default () => ( | ||
<div style={{ maxWidth: '400px' }}> | ||
<EuiDescriptionList | ||
listItems={favoriteVideoGames} | ||
type="column" | ||
align="center" | ||
titleProps={{ className: 'eui-textTruncate' }} | ||
descriptionProps={{ className: 'eui-textTruncate' }} | ||
/> | ||
</div> | ||
); |
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
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