MCPcopy
hub / github.com/shadcn-ui/ui / Marker

Function Marker

apps/v4/registry/bases/base/ui/marker.tsx:21–41  ·  view source on GitHub ↗
({
  className,
  variant = "default",
  render,
  ...props
}: useRender.ComponentProps<"div"> & VariantProps<typeof markerVariants>)

Source from the content-addressed store, hash-verified

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 }: React.ComponentProps<"span">) {
44 return (

Callers

nothing calls this directly

Calls 3

useRenderFunction · 0.90
cnFunction · 0.90
mergePropsFunction · 0.85

Tested by

no test coverage detected