p-carousel component allows related or similar content to be consumed on a step by step basis with a better
overview than just showing them in a grid or as a list. The reason for this is, that only a certain amount of slides is
visible at the same time.p-carousel's content has to be divided into multiple parts or slides. The amount of slides visible can
be specified on a per-breakpoint basis.Layout hint
width prop to align with the --p-carousel-px CSS variable, the component can be placed within any container, allowing you
to customize the horizontal padding that reveals parts of the next/previous slide.--p-carousel-ps and --p-carousel-pe CSS variables, the component can be placed
within any container, allowing you to customize the horizontal padding asymmetric that reveals parts of the
next/previous slide.Dynamic changes
Some heading
Slide 1
Slide 2
Slide 3
Slide 4
<!doctype html>
<html lang="en" class="scheme-light-dark">
<head>
<title></title>
</head>
<body class="bg-canvas">
<p-carousel heading="Some heading" trim-space="true" pagination="true" rewind="true">
<div class="grid place-content-center h-[150px] bg-surface prose-text-sm">
Slide 1
</div>
<div class="grid place-content-center h-[150px] bg-surface prose-text-sm">
Slide 2
</div>
<div class="grid place-content-center h-[150px] bg-surface prose-text-sm">
Slide 3
</div>
<div class="grid place-content-center h-[150px] bg-surface prose-text-sm">
Slide 4
</div>
</p-carousel>
<script>
</script>
</body>
</html>