Skip to content

Avatar

The way of water has no beginning and no end.

Example

Show Code
vue
<script lang="ts" setup>
import { RAvatar, RInput, RSpace } from 'roughness'
import { ref } from 'vue'

const name = ref('Cameron')
</script>

<template>
  <RSpace align="center">
    <RAvatar :name="name" />
    <RInput v-model="name" />
    <RAvatar :name="[...name].reverse().join('')" round />
  </RSpace>
</template>

Usage

Props

NameTypeDefault ValueDescription
graphicsOptions
nameRequired
round

Styles

NameTypeDefault ValueDescription
--r-avatar-size
--r-avatar-border-color
--r-avatar-border-width
--r-avatar-border-dash

Released under the ISC License.