-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Button): add close icon support (#1206)
Closes #1182
- Loading branch information
1 parent
bd8b2e0
commit 02f5e9a
Showing
4 changed files
with
96 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React, { Component } from 'react'; | ||
import { Button, Card, CardBody, CardText, CardGroup, CardTitle } from 'reactstrap'; | ||
|
||
const Example = () => ( | ||
<div> | ||
<CardGroup> | ||
<Card> | ||
<CardBody> | ||
<CardTitle> | ||
|
||
<Button close /> | ||
|
||
</CardTitle> | ||
<CardText>Default close icon</CardText> | ||
</CardBody> | ||
</Card> | ||
|
||
<Card> | ||
<CardBody> | ||
<CardTitle> | ||
|
||
<Button close aria-label="Cancel"> | ||
<span aria-hidden>–</span> | ||
</Button> | ||
|
||
</CardTitle> | ||
<CardText> | ||
Custom content and aria-label | ||
</CardText> | ||
</CardBody> | ||
</Card> | ||
</CardGroup> | ||
|
||
|
||
</div> | ||
); | ||
|
||
export default Example; |
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