Skip to content

ExCard

Card
html
<ExCard :size="150" :radius="8">
    Card
</ExCard>

<script setup lang="ts">
import { ref } from 'vue'

const size = ref(150) // string | number
const radius = ref(8) // string | number
</script>

Interact

Props

as

TypeDefaultRequired
string componenttemplatefalse

Description: Sets the element type of ex-card. Any custom vue component can also be passed.


tile

TypeDefaultRequired
booleanfalsefalse

Description: Removes border radius to the ex-card element, if set using radius prop.


size

TypeDefaultRequired
string numberundefinedfalse

Description: Sets the width and height of ex-card. It can also take both width and height parameters.

Passing size="100 50" as a value will result in width: 100px and height: 50px. Values can also be percentages.

If only a single value is passed, it will be applied to both width and height


radius

TypeDefaultRequired
string numberundefinedfalse

Description: Sets the border radius for ex-card. It can also take 4 values mentioning individual corner radius of an element.

Passing size="20 30 40 50" as a value will result in border-radius: 20px 30px 40px 50px. Values can also be percentages.


width

TypeDefaultRequired
string numberundefinedfalse

Description: Sets the width of ex-card. width takes precedence over size. Values can also be percentages.


height

TypeDefaultRequired
string numberundefinedfalse

Description: Sets the height of ex-card. height takes precedence over size. Values can also be percentages.


Slots

NameDescription
defaultThe default Vue slot

Released under the MIT License.