A shadcn-style angle slider component built with Ark UI primitives.

Installation

npx shadcn@latest add @ark-cn/angle-slider

Usage

import * as AngleSlider from "@/components/ui/angle-slider"

Read exported parts in src/components/ui/angle-slider.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Ring

Labeled

Rotation

180deg

Split

Ticks

Controlled

Small Size

Large Size

Disabled

API reference

This component mirrors the upstream Ark UI primitive. All props and DOM behavior are defined by Ark unless you see an ark-cn-only row below.

AngleSlider

PropTypeDescription
variant?"labeled" | "ring" | "rotation" | "split" | "ticks"Built-in visual layout for the dial.
footer?ReactNodeRenders after the control.
size?numberOuter control diameter in px.

See the ARK UI documentation for the full API.