-
-
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(Avatar): add support for bordered and color props * feat(Avatar): add support for `onError` * docs: add missing sandbox dependencies
- Loading branch information
Showing
25 changed files
with
557 additions
and
211 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
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,16 @@ | ||
<!--start-code--> | ||
|
||
```js | ||
import { AvatarGroup, Avatar } from 'rsuite'; | ||
|
||
const App = () => ( | ||
<AvatarGroup spacing={20}> | ||
<Avatar bordered src="https://i.pravatar.cc/150?u=1" /> | ||
<Avatar bordered circle src="https://i.pravatar.cc/150?u=2" /> | ||
</AvatarGroup> | ||
); | ||
|
||
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,35 @@ | ||
<!--start-code--> | ||
|
||
```js | ||
import { AvatarGroup, Avatar } from 'rsuite'; | ||
|
||
const App = () => ( | ||
<> | ||
<AvatarGroup spacing={14}> | ||
<Avatar color="red" bordered circle src="https://i.pravatar.cc/150?u=1" /> | ||
<Avatar color="orange" bordered circle src="https://i.pravatar.cc/150?u=1" /> | ||
<Avatar color="yellow" bordered circle src="https://i.pravatar.cc/150?u=1" /> | ||
<Avatar color="green" bordered circle src="https://i.pravatar.cc/150?u=1" /> | ||
<Avatar color="cyan" bordered circle src="https://i.pravatar.cc/150?u=1" /> | ||
<Avatar color="blue" bordered circle src="https://i.pravatar.cc/150?u=1" /> | ||
<Avatar color="violet" bordered circle src="https://i.pravatar.cc/150?u=1" /> | ||
</AvatarGroup> | ||
|
||
<hr /> | ||
|
||
<AvatarGroup spacing={6}> | ||
<Avatar color="red" circle /> | ||
<Avatar color="orange" circle /> | ||
<Avatar color="yellow" circle /> | ||
<Avatar olor="green" circle /> | ||
<Avatar color="cyan" circle /> | ||
<Avatar color="blue" circle /> | ||
<Avatar color="violet" circle /> | ||
</AvatarGroup> | ||
</> | ||
); | ||
|
||
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,16 @@ | ||
<!--start-code--> | ||
|
||
```js | ||
import { AvatarGroup, Avatar } from 'rsuite'; | ||
|
||
const App = () => ( | ||
<AvatarGroup spacing={6}> | ||
<Avatar circle src="https://images.unsplash.com/broken" alt="Alt" /> | ||
<Avatar circle src="https://images.unsplash.com/broken" /> | ||
</AvatarGroup> | ||
); | ||
|
||
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
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.