Scroll Area
Augments native scroll functionality for custom, cross-browser styling.
Source code
Click here to see the source code for this component on GitHub. Feel free to copy it and adjust it for your own use.
Installation
npx ui-thing@latest add scroll-area
Usage
<template>
<UiScrollArea class="h-[200px] w-[350px] rounded-md border p-4">
Jokester began sneaking into the castle in the middle of the night and leaving jokes all over
the place: under the king's pillow, in his soup, even in the royal toilet. The king was furious,
but he couldn't seem to stop Jokester. And then, one day, the people of the kingdom discovered
that the jokes left by Jokester were so funny that they couldn't help but laugh. And once
theystarted laughing, they couldn't stop.
</UiScrollArea>
</template>