mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-25 15:10:48 +02:00
feat(avatars): update storybooks avatars return <img> tag.
This commit is contained in:
@@ -16,5 +16,7 @@ stories.add('avatars', () => {
|
|||||||
const isRounded = boolean('is-rounded', false) ? 'is-rounded' : '';
|
const isRounded = boolean('is-rounded', false) ? 'is-rounded' : '';
|
||||||
const selectedClasses = [isRounded, options].join(' ');
|
const selectedClasses = [isRounded, options].join(' ');
|
||||||
|
|
||||||
return `<img src="http://www.gravatar.com/avatar" class="nes-avatar ${selectedClasses}">`;
|
return `<img src="http://www.gravatar.com/avatar?s=15" class="nes-avatar ${selectedClasses}"
|
||||||
|
alt="Gravatar Image Example"
|
||||||
|
style="image-rendering: pixelated;">`;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user