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

Skeleton

Use to show a placeholder while content is loading.

Installation#

npx shadcn@latest add @rescript-shadcn/Skeleton

Usage#

<Skeleton className="h-[20px] w-[100px] rounded-full" />

Examples#

Avatar#

Card#

Text#

Form#

Table#

@react.component
let make = () =>
  <div className="flex items-center gap-4">
@react.component
let make = () =>
  <div className="flex w-fit items-center gap-4">
@react.component
let make = () =>
  <Card className="w-full max-w-xs">
@react.component
let make = () =>
  <div className="flex w-full max-w-xs flex-col gap-7">
@react.component
let make = () =>
  <div className="flex w-full max-w-sm flex-col gap-2">
@react.component
let make = () =>
  <div className="flex w-full max-w-xs flex-col gap-2">