Created
September 7, 2018 20:58
-
-
Save kuroski/a5940d5588678215a7b62ec81e656b59 to your computer and use it in GitHub Desktop.
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
<script> | |
export default { | |
name: 'UserProfile', | |
props: { | |
user: { | |
type: Object, | |
required: true, | |
} | |
} | |
} | |
</script> | |
<template> | |
<div class="user-profile"> | |
<img class="user-profile__avatar" :src="user.avatar_url" /> | |
<div class="user-profile__name"> | |
{{ user.name }} | |
</div> | |
<div class="user-profile__bio"> | |
{{ user.bio }} | |
</div> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment