@maas/vue-autosize

Vue component that interpolates its size according to its content
8,947 3
Install
npm install @maas/vue-autosize
Latest Version:1.8.0
Vue:3
License:MIT
Last Updated:Aug 25, 2026
Links: GitHub  ·  npm
Maintainer: robinscholz

📏 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

Related Packages

@maas/vue-primitive

Vue component for passing attributes to slot content

10,270 6
vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398

Version History

Version Released Vue License
1.8.0 ^3.5 MIT
1.7.0 ^3.5 MIT
1.6.1 ^3.5 MIT
1.6.0 ^3.5 MIT
1.5.1 ^3.5 MIT