Pure UI
DocsComponentsBlocksNEW
141

Docs

IntroductionGet Started
Installation
Theming

Components

AccordionAvatarBadgeButtonButton GroupCalendarCardCheckboxCollapsibleCombobox
Detached Triggers
DialogInputInput GroupInput OTPKbdLabelMenuNumber FieldPopoverRadio GroupNEWScroll AreaSelectSeparatorSheetSpinnerSwitchTabsNEWTextareaToastTooltip

Scroll Area

A native scroll container with custom scrollbars.

Cricket is a bat-and-ball game played between two teams of eleven players each. It originated in England and has become incredibly popular in countries such as India, Australia, and South Africa. The game is played on a large oval field with a rectangular 22-yard-long pitch at the center, where the main action takes place between the bowler and the batter.

Matches can last between several hours and up to five days, depending on the format. Cricket is known for its strategic depth, unique rules, and traditions such as tea breaks in longer matches. Whether it's the excitement of a fast-paced T20 game or the endurance challenge of Test cricket, the sport captivates millions of fans worldwide.

A fundamental aspect of cricket is the balance between batting, bowling, and fielding. Teams strategize not only to score runs but also to restrict their opponents through clever bowling changes and careful placement of fielders. Batsmen employ a wide range of shots to counter the bowlers’ tactics, while bowlers use variations in speed, spin, and swing to outwit the batsmen.

Cricket also boasts a rich culture of iconic tournaments, such as the Cricket World Cup and the Indian Premier League (IPL), which attract players and fans from all over the globe. These events feature passionate rivalries, legendary performances, and create lifelong memories for cricket enthusiasts.

Beyond its competitive thrills, cricket is often celebrated for its spirit of sportsmanship, highlighted by traditions like shaking hands after the match and the concept of the "Spirit of Cricket," which emphasizes respect for opponents, officials, and the game’s rules. This ethos has helped cricket build a reputation as not only a spectacle of athletic prowess but also a game that values integrity and camaraderie.

Installation

Loading content...

Usage

import { ScrollArea } from "@/components/ui/scroll-area";
<ScrollArea className="h-64 rounded-md border">
  <ScrollAreaContent className="p-4">
    Just as suddenly as it had begun, the sensation stopped, leaving Alice
    feeling slightly disoriented. She looked around and realized that the room
    hadn't changed at all - it was she who had grown smaller, shrinking down to
    a fraction of her previous size. Alice felt herself growing larger and
    larger, filling up the entire room until she feared she might burst. The
    sensation was both thrilling and terrifying, as if she were expanding beyond
    the confines of her own body. She wondered if this was what it felt like to
    be a balloon, swelling with air until it could hold no more.
  </ScrollAreaContent>
</ScrollArea>

Examples

Horizontal Layout

Sachin Tendulkar
Virat Kohli
MS Dhoni
Kapil Dev
Sunil Gavaskar
Rahul Dravid
Sourav Ganguly
Virender Sehwag
Anil Kumble
Zaheer Khan
Harbhajan Singh
Yuvraj Singh
Gautam Gambhir
VVS Laxman
Javagal Srinath
Mohammad Azharuddin
Ravi Shastri
Jasprit Bumrah
Rohit Sharma
Hardik Pandya

Both Scroll

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100

Scroll Shadows

The scroll shadows are the small gradient backgrounds that appear at the top and bottom (vertical) or left and right (horizontal) of the scroll area when scrolling. They are useful to indicate that the scroll area is scrollable.

You can control the scroll shadows using the scrollShadow prop. It can be set to vertical, horizontal, both, or none. The default value is none.

<ScrollArea
  scrollShadow="vertical"
>
  <ScrollAreaContent>
    <div>
      <p>Vertical scroll shadow</p>
    </div>
  </ScrollAreaContent>
</ScrollArea>

Vertical

Cricket is a bat-and-ball game played between two teams of eleven players each. It originated in England and has become incredibly popular in countries such as India, Australia, and South Africa. The game is played on a large oval field with a rectangular 22-yard-long pitch at the center, where the main action takes place between the bowler and the batter.

Matches can last between several hours and up to five days, depending on the format. Cricket is known for its strategic depth, unique rules, and traditions such as tea breaks in longer matches. Whether it's the excitement of a fast-paced T20 game or the endurance challenge of Test cricket, the sport captivates millions of fans worldwide.

A fundamental aspect of cricket is the balance between batting, bowling, and fielding. Teams strategize not only to score runs but also to restrict their opponents through clever bowling changes and careful placement of fielders. Batsmen employ a wide range of shots to counter the bowlers’ tactics, while bowlers use variations in speed, spin, and swing to outwit the batsmen.

Cricket also boasts a rich culture of iconic tournaments, such as the Cricket World Cup and the Indian Premier League (IPL), which attract players and fans from all over the globe. These events feature passionate rivalries, legendary performances, and create lifelong memories for cricket enthusiasts.

Beyond its competitive thrills, cricket is often celebrated for its spirit of sportsmanship, highlighted by traditions like shaking hands after the match and the concept of the "Spirit of Cricket," which emphasizes respect for opponents, officials, and the game’s rules. This ethos has helped cricket build a reputation as not only a spectacle of athletic prowess but also a game that values integrity and camaraderie.

Horizontal

Photo by Ornella Binni
Photo by Ornella Binni
Photo by Tom Byrom
Photo by Tom Byrom
Photo by Vladimir Malyavko
Photo by Vladimir Malyavko

Both

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100