-
-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Message): add support for
bordered
and centered
props on Mes…
…sage (#3605) * feat(Message): add support for `bordered` and `centered` props on Message * fix: add version
- Loading branch information
Showing
13 changed files
with
245 additions
and
41 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,26 @@ | ||
<!--start-code--> | ||
|
||
```js | ||
import { Message } from 'rsuite'; | ||
|
||
const App = () => ( | ||
<> | ||
<Message type="info" bordered showIcon> | ||
<strong>Info!</strong> You can use the `Message` component to display a info message. | ||
</Message> | ||
<Message type="success" bordered showIcon> | ||
<strong>Success!</strong> You can use the `Message` component to display a success message. | ||
</Message> | ||
<Message type="warning" bordered showIcon> | ||
<strong>Warning!</strong> You can use the `Message` component to display a warning message. | ||
</Message> | ||
<Message type="error" bordered showIcon> | ||
<strong>Error!</strong> You can use the `Message` component to display a error message. | ||
</Message> | ||
</> | ||
); | ||
|
||
ReactDOM.render(<App />, document.getElementById('root')); | ||
``` | ||
|
||
<!--end-code--> |
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,21 @@ | ||
<!--start-code--> | ||
|
||
```js | ||
import { Message } from 'rsuite'; | ||
|
||
const App = () => ( | ||
<Message type="success" centered showIcon header="Application has been accepted !"> | ||
<p> | ||
Your application has been successfully submitted, and we will process it within 1-3 working | ||
days. | ||
</p> | ||
<p> | ||
You can check the application status in the <a href="#">application record</a>. | ||
</p> | ||
</Message> | ||
); | ||
|
||
ReactDOM.render(<App />, document.getElementById('root')); | ||
``` | ||
|
||
<!--end-code--> |
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
Oops, something went wrong.