@maas/vue-autosize
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

📏 Vue Autosize

Autosize is a component that automatically interpolates its size to its child’s size.

📦 Install

pnpm install @maas/vue-autosize

🪄 Use

<script setup>
import { AutoSize } from '@maas/vue-autosize'
</script>

<template>
  <auto-size>
    <!-- your content -->
  </auto-size>
</template>

[!IMPORTANT] The component’s children need to be either given a fixed width or rendered as inline, inline-block, or inline-flex elements.

✅ Peer Dependencies

If you haven’t installed the required peer dependencies automatically, you’ll need to install the following packages manually to use the component.

pnpm install @vueuse/core vue

🐛 Found a Bug?

If you see something that doesn’t look right, submit a bug report. See it. Say it. Sorted.

📄 License

MIT License © 2025-PRESENT Magic as a Service GmbH

Package Sidebar

Install

npm i @maas/vue-autosize

Weekly Downloads

73

Version

1.6.0

License

MIT

Unpacked Size

18.4 kB

Total Files

9

Last publish

Collaborators

  • robinscholz
  • christophjeworutzki