Home

The ScrollArea component creates a scrollable region with custom scrollbars and smooth behavior. It’s ideal for containing content that exceeds its visible bounds in a polished way.

Installation

npm
npx phpxui add ScrollArea

Usage

use Lib\PHPXUI\ScrollArea;
<ScrollArea class="h-50 w-87.5 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 they
    started laughing, they couldn't stop.
</ScrollArea>

Examples

Horizontal Scrolling