UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

shadcn/ui/Direction

Other
1 of 3
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

3 versions·3 libraries

  • shadcn/ui
  • Cult UI
  • Eldora UI

Direction

npx shadcn@latest add https://ui.shadcn.com/r/styles/new-york-v4/direction.json
Open in v0 Docs Repo
Library
shadcn/ui
License
MIT
Stack
React · Tailwind CSS · radix
Packages
cnradix-ui
Also adds
button, input
Size
23 lines
Demo
Written by UIPin: the library doesn’t ship a usage example, so the preview uses one of ours (in the code below).

Code

registry/new-york-v4/ui/direction.tsx

"use client"

import * as React from "react"
import { Direction } from "radix-ui"

function DirectionProvider({
  dir,
  direction,
  children,
}: React.ComponentProps<typeof Direction.DirectionProvider> & {
  direction?: React.ComponentProps<typeof Direction.DirectionProvider>["dir"]
}) {
  return (
    <Direction.DirectionProvider dir={direction ?? dir}>
      {children}
    </Direction.DirectionProvider>
  )
}

const useDirection = Direction.useDirection

export { DirectionProvider, useDirection }

More like this

Field

HextaUI·Backgrounds

Cool Mode

Magic UI·Buttons

Ai Artifact

SmoothUI·Data display

Select

HextaUI·Inputs & forms

Expandable

Cult UI·Other

Magic Card

Magic UI·Cards

Command

shadcn/ui·Overlays

Progressive Blur

Magic UI·Feedback & loaders

Terminal

Eldora UI·Media & 3D

Direction Aware Tabs

Cult UI·Navigation

Animated Shiny Button

Eldora UI·Text effects

Carousel

HextaUI·Media & 3D

Ripple Button

Magic UI·Backgrounds

Marker

HextaUI·Other

Live Button

Eldora UI·Buttons