Stack Group

Stack Groupは様々なComponentを重ね合わせて表示するために使用できます。

Example

Image Description
Image Description
Image Description
Image Description
Image Description
vue
<template>
 <StackGroup>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/1-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/2-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/3-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/4-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/5-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
 </StackGroup>
</template>

Overlap Size

Image Description
Image Description
Image Description
Image Description
Image Description
vue
<template>
 <StackGroup overlap="2em">
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/1-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/2-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/3-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/4-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/5-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
 </StackGroup>
</template>

Hover Scale

Image Description
Image Description
Image Description
Image Description
Image Description
vue
<template>
 <StackGroup :hover-scale="2.5">
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/1-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/2-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/3-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/4-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
  <StackGroupItem>
   <Avatar
    circle
    img-src="https://reqres.in/img/faces/5-image.jpg"
    img-alt="Image Description"
   />
  </StackGroupItem>
 </StackGroup>
</template>

See Also