BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/uiable/marker

Marker

uiable/marker
FreeComponent

Marker component.

Live preview

live · rendered by the registry
Rendered by uiable on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://uiable.com/r/marker.json

Source

src/components/ui/marker.tsxuiable.com/r/marker.json
1import { ComponentProps } from "react"
2import { mergeProps } from "@base-ui/react/merge-props"
3import { useRender } from "@base-ui/react/use-render"
4import { cva, VariantProps } from "class-variance-authority"
5import { cn } from "@/lib/utils"
6
7const markerVariants = cva(
8 "group/marker relative flex min-h-4 w-full items-center gap-2 text-left text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground",
9 {
10 variants: {
11 variant: {
12 default: "",
13 separator:
14 "before:mr-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ml-1 after:h-px after:min-w-0 after:flex-1 after:bg-border",
15 border: "border-b border-border pb-2",
16 },
17 },
18 }
19)
20
21function Marker({
22 className,
23 variant = "default",
24 render,
25 ...props
26}: useRender.ComponentProps<"div"> & VariantProps<typeof markerVariants>) {
27 return useRender({
28 defaultTagName: "div",
29 props: mergeProps<"div">(
30 {
31 className: cn(markerVariants({ variant, className })),
32 },
33 props
34 ),
35 render,
36 state: {
37 slot: "marker",
38 variant,
39 },
40 })
41}
42
43function MarkerIcon({ className, ...props }: ComponentProps<"span">) {
44 return (
45 <span
46 data-slot="marker-icon"
47 aria-hidden="true"
48 className={cn(
49 "size-4 shrink-0 [&_svg:not([class*='size-'])]:size-4",
50 className
51 )}
52 {...props}
53 />
54 )
55}
56
57function MarkerContent({ className, ...props }: ComponentProps<"span">) {
58 return (
59 <span
60 data-slot="marker-content"
61 className={cn(
62 "min-w-0 wrap-break-word group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
63 className
64 )}
65 {...props}
66 />
67 )
68}
69
70export { Marker, MarkerIcon, MarkerContent, markerVariants }

What it pulls in

npm packages

  • @base-ui/react
  • class-variance-authority

Files it writes

  • src/components/ui/marker.tsx

Facts

Registry
uiable
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

Docs on uiable uiable.com codedthemes/uiable on GitHub Raw registry item This item as JSON

More from uiable

All 712 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionuiableComponentsFree2 deps
AlertalertuiableComponentsFree1 dep
Alert Dialogalert-dialoguiableComponentsFree1 dep
Aspect Ratioaspect-ratiouiableComponentsFreeno deps
AttachmentattachmentuiableComponentsFree2 deps
AvataravataruiableComponentsFree1 dep
BadgebadgeuiableComponentsFree2 deps
BreadcrumbbreadcrumbuiableComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex