0.0.5 • Published 7 months ago

vue-live-island v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

npm.io

vue-live-island

Dynamic Island 🏝 for ⚛️ Vue

npm npm npm bundle size GitHub npm type definitions

Install

pnpm add vue-live-island
# or
yarn add vue-live-island
# or
npm i vue-live-island

Usage

<script setup lang="ts">
import { LiveIsland } from 'vue-live-island';
import { ref } from 'vue';

const isSmall = ref<boolean>(true)
</script>

<template>
<LiveIsland
    class-name="flex items-center justify-center uppercase"
    small-class-name="text-xs"
    large-class-name="text-7xl"
    trigger-type="click"
    initial-animation
    @change="(change:boolean)=>{isSmall = !change}"
>
    {{ isSmall ? 'Small':'Large' }}
</LiveIsland>
</template>

Props

PropTypeDefaultDescription
classNamestring''Class name of the island
topnumber\|string10Top egde of the island
smallClassNamestring''Class name of the small island
smallWidthnumber\|string96Width of the small island
smallHeightnumber\|string30Height of the small island
largeClassNamestring''Class name of the large island
largeWidthnumber\|string400Width of the large island
largeHeightnumber\|string180Height of the large island
largeRadiusnumber\|string36Border radius of the large island
wrapperClassNamestring''Class name of the whole container
triggerType'click'\|'hover''click'Trigger mode for open
initialAnimationbooleanfalseWhether show animiation on enter

Reference

This project is built with

License

MIT License

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago