Skip to content

Notch - Vue

Terminal window
npm install @fluix-ui/vue @fluix-ui/css
<script setup>
import { Notch } from "@fluix-ui/vue";
import "@fluix-ui/css";
</script>
<template>
<Notch trigger="click" position="top-center" theme="dark">
<template #pill>
<span>+</span>
</template>
<template #content>
<div>Quick actions</div>
</template>
</Notch>
</template>
PropTypeDefaultDescription
triggerNotchTrigger"click"Open behavior
positionNotchPosition"top-center"Screen anchor
springSpringConfigcore defaultPhysics config
dotSizenumber36Collapsed pill size in px
roundnessnumber20Corner smoothing
themeNotchTheme"dark"Visual theme
fillstringtheme variableBackground fill color
openbooleanuncontrolledControlled open state
onOpenChange(open: boolean) => void-Open/close callback
  • pill: collapsed content
  • content: expanded content