4.2.0
CoreMarker

Marker API

Every prop of the 3 parts Marker exports, plus the 1 symbol it exports alongside them, generated from the package manifest.

import { Marker, MarkerContent, MarkerIcon } from '@oceanic-hub/brand-system'
Layer
core — shadcn-derived primitives.
Exports
Marker · MarkerContent · MarkerIconalso: markerVariantstypes: MarkerProps
Variants
  • variant: default | separator | border
Contract
packages/brand-system/src/components/marker.contract.test-d.ts
Demos
5 on the Marker page — rendered live, hydrated
Source
packages/brand-system/src/components/marker.tsx

Generated from manifest/component-manifest.json, so it cannot drift from the source. For what Marker is for, how it composes and what it looks like, see Marker.

Marker

MarkerProps

Prop

Type

Also accepts everything from React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof markerVariants>.

MarkerContent

A styled <span> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

MarkerIcon

A styled <span> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

markerVariants

A cva class builder. It returns the class string for a set of variants, so a foreign element can wear this component's surface — a link styled as a button, an AlertDialogAction styled as a destructive one. An advanced move: reach for the component first.

(props?: ({ variant?: "default" | "separator" | "border" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined): string

Parameters

Prop

Type

Variant axes

Read off the component's own cva config, so this table and the parts that consume it cannot disagree.

Prop

Type

On this page