ReScript Shadcn
Get started
  • Installation
Components
  • Accordion
  • Alert
  • AlertDialog
  • AspectRatio
  • Attachment
  • Avatar
  • Badge
  • Breadcrumb
  • Bubble
  • Button
  • ButtonGroup
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • ContextMenu
  • DataTable
  • DatePicker
  • Dialog
  • Direction
  • Drawer
  • DropdownMenu
  • Empty
  • Field
  • HoverCard
  • Input
  • InputGroup
  • InputOtp
  • Item
  • Kbd
  • Label
  • Marker
  • Menubar
  • Message
  • MessageScroller
  • NativeSelect
  • NavigationMenu
  • Pagination
  • Popover
  • Progress
  • RadioGroup
  • Resizable
  • ScrollArea
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Sonner
  • Spinner
  • Switch
  • Table
  • Tabs
  • Textarea
  • Toast
  • Toggle
  • ToggleGroup
  • Tooltip
  • Typography

Typography

Styles for headings, paragraphs, lists...etc

We do not ship any typography styles by default. This page is an example of how you can use utility classes to style your text.

Taxing Laughter: The Joke Tax Chronicles

Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money.

The King's Plan

The king thought long and hard, and finally came up with a brilliant plan: he would tax the jokes in the kingdom.

"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."

The Joke Tax

The king's subjects were not amused. They grumbled and complained, but the king was firm:

  • 1st level of puns: 5 gold coins
  • 2nd level of jokes: 10 gold coins
  • 3rd level of one-liners : 20 gold coins

As a result, people stopped telling jokes, and the kingdom fell into a gloom. But there was one person who refused to let the king's foolishness get him down: a court jester named Jokester.

Jokester's Revolt

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.

The People's Rebellion

The people of the kingdom, feeling uplifted by the laughter, started to tell jokes and puns again, and soon the entire kingdom was in on the joke.

King's TreasuryPeople's happiness
EmptyOverflowing
ModestSatisfied
FullEcstatic

The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax. Jokester was declared a hero, and the kingdom lived happily ever after.

The moral of the story is: never underestimate the power of a good laugh and always be careful of bad ideas.

h1#

Taxing Laughter: The Joke Tax Chronicles

h2#

The People of the Kingdom

h3#

The Joke Tax

h4#

People stopped telling jokes

p#

The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax.

blockquote#

"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."

table#

King's TreasuryPeople's happiness
EmptyOverflowing
ModestSatisfied
FullEcstatic

list#

  • 1st level of puns: 5 gold coins
  • 2nd level of jokes: 10 gold coins
  • 3rd level of one-liners : 20 gold coins

Inline code#

@radix-ui/react-alert-dialog

Lead#

A modal dialog that interrupts the user with important content and expects a response.

Large#

Are you absolutely sure?

Small#

Email address

Muted#

Enter your email address.

@react.component
let make = () =>
  <h1 className="scroll-m-20 text-center text-4xl font-extrabold tracking-tight text-balance">
@react.component
let make = () =>
  <h2 className="scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0">
@react.component
let make = () =>
  <h3 className="scroll-m-20 text-2xl font-semibold tracking-tight">
@react.component
let make = () =>
  <h4 className="scroll-m-20 text-xl font-semibold tracking-tight">
@react.component
let make = () =>
  <p className="leading-7 [&:not(:first-child)]:mt-6">
@react.component
let make = () =>
  <blockquote className="mt-6 border-l-2 pl-6 italic">
@react.component
let make = () =>
  <div className="my-6 w-full overflow-y-auto">
@react.component
let make = () =>
  <ul className="my-6 ml-6 list-disc [&>li]:mt-2">
@react.component
let make = () =>
  <code
@react.component
let make = () =>
  <p className="text-muted-foreground text-xl">
@react.component
let make = () =>
  <div className="text-lg font-semibold"> {"Are you absolutely sure?"->React.string} </div>
@react.component
let make = () =>
  <small className="text-sm leading-none font-medium"> {"Email address"->React.string} </small>
@react.component
let make = () =>
  <p className="text-muted-foreground text-sm"> {"Enter your email address."->React.string} </p>