KobraGet Pro

Free

Input OTPNavigation MenuVideoCarouselAI EditorMorphing IconsNewCommand MenuToastConversationHalftone DotsSound

Generative UI

Agent MapNewProduct CardsNewComposerNewImage GenerationUpdatedWeatherNewConversionNewDocument AgentStreaming TextInline CitationsCode Block

Agents

Trace WaterfallTask ListPlan CardQuestion CardUpdatedReasoning StepsChat HistoryMessageChat InputUpdated

Content

TableCRM TableGrouped TableChartItemAvatarBadgeMarkerKbdAttachmentImage GalleryLightboxQR CodeAdvertisement

Feedback

AlertProgressSpinnerSkeletonEmpty

Form controls

FormInputInput DissolveTextareaButtonUpdatedToggle GroupFilter ChipsCheckboxRadio GroupSwitchSliderSelectComboboxMulti SelectCalendarUpdatedColor PaletteColor PickerLogo PickerNewMagnetic Dropzone

Layout

CardAccordionCollapsibleAspect RatioLogo CarouselSeparatorScroll AreaResizableDirection

Navigation

TabsUpdatedBreadcrumbPaginationSidebarUpdatedMenubar

Overlays

DialogSheetDrawerPopoverHover CardTooltipDropdown MenuUpdatedContext Menu
منظر جوي لفلوريانوبوليس: خليج فيروزي ترسو فيه قوارب شراعية بين تلال مكسوة بالغابات والمدينة.
فلوريانوبوليس
سانتا كاتارينا، البرازيل
يقع معظم المدينة على جزيرة يحيط بها نحو أربعين شاطئًا. مياه هادئة وأشجار مانغروف في الشمال، وأمواج أطلسية مفتوحة على طول الساحل الشرقي.
// How fucking stupid do you think I am to hide source code behind a CSS blur?
function Component({ className, variant = 'default', ...props }: Props) {
  const [open, setOpen] = useState(false)
  const reduced = useReducedMotion()

  useEffect(() => {
    if (!open) return
    const timer = window.setTimeout(() => setOpen(false), HOLD_MS)
    return () => window.clearTimeout(timer)
  }, [open])

  return (
    <div
      data-slot="component"
      data-state={open ? 'open' : 'closed'}
      className={cn(variants({ variant }), className)}
      {...props}
    >
      <span className="pointer-events-none absolute inset-0 rounded-[inherit]" />
      {children}
    </div>
  )
}

Upgrade to Kobra Pro

Get full access to the library, or take just the component you came for.

Get Pro

Direction

Turns every component right to left, for Arabic and other RTL scripts.

Install

npx shadcn@latest add @kobra/direction
PropTypeDefault

children

ReactNode

Component content

className

string

Optional CSS classes

Composition

  • Built on the Base UI Direction Provider primitive.
  • Takes a fixed set of props rather than native element ones.