Available Features
• Adaptive Cruise Control
• Automatic Emergency Braking
• Blind Spot Monitoring
• Cross Traffic Alert
• Lane Departure Warning
• Lane Keep Assist
• Forward Collision Warning
• Automatic High Beams
• Rain Sensing Wipers
• Keyless Entry and Start
• Dual-Zone Climate Control
• Heated Front Seats
• Power Adjustable Seats
• Leather Interior
• Sunroof/Moonroof
• Premium Audio System
• Navigation System
• Wireless Charging
• USB Ports
• Bluetooth Connectivity
• Apple CarPlay
• Android Auto
• Backup Camera
• 360-Degree Camera
• Parking Sensors
Car 1
Car 2
Car 3
Car 4
Car 5
Car 6
Car 7
Car 8
Car 9
Car 10
Car 11
Car 12
Car 13
Car 14
Car 15
Car 16
Car 17
Car 18
Car 19
Car 20
"use client"
import { ScrollArea } from "@/components/ui/preskok-ui/scroll-area"
const vehicleFeatures = [
"Adaptive Cruise Control",
"Automatic Emergency Braking",
"Blind Spot Monitoring",
"Cross Traffic Alert",
"Lane Departure Warning",
"Lane Keep Assist",
"Forward Collision Warning",
"Automatic High Beams",
"Rain Sensing Wipers",
"Keyless Entry and Start",
"Dual-Zone Climate Control",
"Heated Front Seats",
"Power Adjustable Seats",
"Leather Interior",
"Sunroof/Moonroof",
"Premium Audio System",
"Navigation System",
"Wireless Charging",
"USB Ports",
"Bluetooth Connectivity",
"Apple CarPlay",
"Android Auto",
"Backup Camera",
"360-Degree Camera",
"Parking Sensors",
]
export function ScrollAreaDemo() {
return (
<div className="space-y-4">
<ScrollArea className="h-48 w-64 rounded border p-4">
<h4 className="mb-4 text-sm font-medium">Available Features</h4>
<div className="space-y-2">
{vehicleFeatures.map((feature, index) => (
<div key={index} className="text-sm">
• {feature}
</div>
))}
</div>
</ScrollArea>
<ScrollArea className="h-32 w-full rounded border p-4">
<div className="flex space-x-4">
{Array.from({ length: 20 }, (_, i) => (
<div
key={i}
className="bg-muted flex h-20 w-32 flex-shrink-0 items-center justify-center rounded"
>
Car {i + 1}
</div>
))}
</div>
</ScrollArea>
</div>
)
}
Installation
CLI
Manual
pnpmnpmyarnbunpnpm dlx @preskok-org/ui@latest add scroll-area
Usage
import { ScrollArea } from "@/registry/preskok/ui/preskok-ui/scroll-area"
export function ScrollAreaDemo() {
return (
<ScrollArea className="h-48 w-64">
<div className="space-y-2">
{Array.from({ length: 50 }, (_, i) => (
<div key={i}>Item {i + 1}</div>
))}
</div>
</ScrollArea>
)
}