Skip to content
navy

DashedContainer

Dashed border container with icon and text, typically used for upload/add actions.

Live Demo

Add Item
Upload File
Schedule Event

Usage

vue
<template>
  <orio-dashed-container
    icon="plus"
    text="Add Item"
    size="medium"
    @click="handleClick"
  />
  <orio-dashed-container
    icon="upload"
    text="Upload File"
    size="large"
    @click="handleClick"
  />
  <orio-dashed-container
    icon="calendar"
    text="Schedule Event"
    size="small"
    @click="handleClick"
  />
</template>

<script setup>
function handleClick() {
  alert("Container clicked!");
}
</script>

Props

PropTypeDefaultDescription
iconstringundefinedIcon name
textstringundefinedText label
size'small' | 'medium' | 'large''medium'Container size

Events

EventPayloadDescription
click-Emitted on container click

Features

  • Dashed border styling
  • Hover effect with gradient
  • Icon size adapts to container size
  • Clickable with cursor pointer