# Marker Place a short event, status or labeled boundary within a conversation or activity feed. [Interactive guide](/docs/components/marker) · Forge 3.2.0 Use the API for your installed version. Run `npx --no-install wss3-forge api --json` inside the project. ## Implementation guidance ### When to use it Use Marker to annotate a boundary or a short step in the surrounding content. ### How to compose it Keep labels in MarkerContent and optional imagery in MarkerIcon. Use the separator variant for a centered boundary label. ### What to verify Ensure a running status has meaningful text and stop decorative motion when reduced motion is enabled. ## Usage ```tsx import { Marker, MarkerIcon, MarkerContent, markerVariants } from 'wss3-forge' ``` - Use the default variant for a short note, border for a row with a bottom rule and separator for a centered label between two rules. Keep labeled boundaries readable as ordinary text. - Use MarkerIcon for a decorative icon and MarkerContent for readable text. Give changing progress a status role and reserve shimmer for work in progress. Reduced motion keeps the label still. - Use the composition API of your selected engine for a whole-row link or button. Put an ordinary link in MarkerContent when only part of the text should activate. - Use markerVariants to apply the appearance to existing markup. For a long-running task with a measured percentage, use Progress. ```tsx Editorial review ``` ## Runnable examples ### Conversation events ```tsx import { Branch16Regular, Search16Regular } from '@fluentui/react-icons' import { Box, Marker, MarkerContent, MarkerIcon, Spinner, VStack } from 'wss3-forge' type MarkerParts = Pick const defaultParts = { Marker, MarkerContent, MarkerIcon } function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function MarkerEvents({ parts = defaultParts }: { parts?: MarkerParts }) { const { Marker, MarkerIcon, MarkerContent } = parts return Created a review branch Checking references… Editorial review Read 3 source notes } export default function Example() { return () } ``` ### Variants ```tsx import { Box, Marker, MarkerContent, MarkerIcon, VStack } from 'wss3-forge' type MarkerParts = Pick const defaultParts = { Marker, MarkerContent, MarkerIcon } function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Variants({ parts = defaultParts }: { parts?: MarkerParts }) { const { Marker } = parts return Draft saved locally Peer review Comments resolved } export default function Example() { return () } ``` ### Separator ```tsx import { Box, Marker, MarkerContent, MarkerIcon, VStack } from 'wss3-forge' type MarkerParts = Pick const defaultParts = { Marker, MarkerContent, MarkerIcon } function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Separators({ parts = defaultParts }: { parts?: MarkerParts }) { const { Marker } = parts return Monday, 8 June Review complete2 unread replies } export default function Example() { return () } ``` ### Border ```tsx import { Branch16Regular, DocumentText16Regular, Search16Regular } from '@fluentui/react-icons' import { Box, Marker, MarkerContent, MarkerIcon, VStack } from 'wss3-forge' type MarkerParts = Pick const defaultParts = { Marker, MarkerContent, MarkerIcon } function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Bordered({ parts = defaultParts }: { parts?: MarkerParts }) { const { Marker, MarkerIcon, MarkerContent } = parts return Created a review branch Found 3 source notes Attached the review summary } export default function Example() { return () } ``` ### Icon ```tsx import { BookOpen16Regular, DocumentText16Regular, Checkmark16Regular } from '@fluentui/react-icons' import { Box, Marker, MarkerContent, MarkerIcon, VStack } from 'wss3-forge' type MarkerParts = Pick const defaultParts = { Marker, MarkerContent, MarkerIcon } function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Icons({ parts = defaultParts }: { parts?: MarkerParts }) { const { Marker, MarkerIcon, MarkerContent } = parts return Added a source note Review complete Published the guide } export default function Example() { return () } ``` ### Status ```tsx import { useState } from 'react' import { DocumentText16Regular } from '@fluentui/react-icons' import { Box, Button, Marker, MarkerContent, MarkerIcon, Spinner, VStack } from 'wss3-forge' type MarkerParts = Pick const defaultParts = { Marker, MarkerContent, MarkerIcon } function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Status({ parts = defaultParts }: { parts?: MarkerParts }) { const { Marker, MarkerIcon, MarkerContent } = parts const [paused, setPaused] = useState(false) return {paused ? : {paused ? 'Checks paused' : 'Checking references…'} } export default function Example() { return () } ``` ### Shimmer ```tsx import { Box, Marker, MarkerContent, MarkerIcon, VStack } from 'wss3-forge' type MarkerParts = Pick const defaultParts = { Marker, MarkerContent, MarkerIcon } function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Shimmer({ parts = defaultParts }: { parts?: MarkerParts }) { const { Marker, MarkerContent } = parts return Preparing a preview… Indexing source notes… } export default function Example() { return () } ``` ### Links and buttons ```tsx import { useState } from 'react' import { ArrowUndo16Regular, BookOpen16Regular } from '@fluentui/react-icons' import { Box, Marker, MarkerContent, MarkerIcon, Text, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function MarkerActions() { const [reverted, setReverted] = useState(false) return }>Read the Marker API } export default function Example() { return () } ``` #### Shimmer ```tsx import { Marker, MarkerContent } from 'wss3-forge/base-ui' import { Box, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Shimmer() { return Preparing a preview… Indexing source notes… } export default function Example() { return () } ``` #### Links and buttons ```tsx import { useState } from 'react' import { ArrowUndo16Regular, BookOpen16Regular } from '@fluentui/react-icons' import { Box, Text, VStack } from 'wss3-forge' import { Marker, MarkerContent, MarkerIcon } from 'wss3-forge/base-ui' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } export default function MarkerActions() { const [reverted, setReverted] = useState(false) return }>Read the Marker API setReverted(!reverted)} />}>{reverted ? 'Restore this change' : 'Revert this change'} {reverted ? 'Checklist attachment removed' : 'Checklist attached'} } ``` ### Radix Set asChild and pass a single anchor or button. Radix Slot merges the marker attributes into that element. ```sh npm install wss3-forge radix-ui ``` ```tsx import { Marker, MarkerIcon, MarkerContent } from 'wss3-forge/radix' import { Branch16Regular, Search16Regular } from '@fluentui/react-icons' import { Box, Spinner, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function MarkerEvents() { return Created a review branch Checking references… Editorial review Read 3 source notes } export default function Example() { return () } ``` #### Variants ```tsx import { Marker } from 'wss3-forge/radix' import { Box, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Variants() { return Draft saved locally Peer review Comments resolved } export default function Example() { return () } ``` #### Separator ```tsx import { Marker } from 'wss3-forge/radix' import { Box, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Separators() { return Monday, 8 June Review complete2 unread replies } export default function Example() { return () } ``` #### Border ```tsx import { Marker, MarkerIcon, MarkerContent } from 'wss3-forge/radix' import { Branch16Regular, DocumentText16Regular, Search16Regular } from '@fluentui/react-icons' import { Box, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Bordered() { return Created a review branch Found 3 source notes Attached the review summary } export default function Example() { return () } ``` #### Icon ```tsx import { Marker, MarkerIcon, MarkerContent } from 'wss3-forge/radix' import { BookOpen16Regular, DocumentText16Regular, Checkmark16Regular } from '@fluentui/react-icons' import { Box, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Icons() { return Added a source note Review complete Published the guide } export default function Example() { return () } ``` #### Status ```tsx import { Marker, MarkerIcon, MarkerContent } from 'wss3-forge/radix' import { useState } from 'react' import { DocumentText16Regular } from '@fluentui/react-icons' import { Box, Button, Spinner, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Status() { const [paused, setPaused] = useState(false) return {paused ? : {paused ? 'Checks paused' : 'Checking references…'} } export default function Example() { return () } ``` #### Shimmer ```tsx import { Marker, MarkerContent } from 'wss3-forge/radix' import { Box, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Shimmer() { return Preparing a preview… Indexing source notes… } export default function Example() { return () } ``` #### Links and buttons ```tsx import { useState } from 'react' import { ArrowUndo16Regular, BookOpen16Regular } from '@fluentui/react-icons' import { Box, Text, VStack } from 'wss3-forge' import { Marker, MarkerContent, MarkerIcon } from 'wss3-forge/radix' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } export default function MarkerActions() { const [reverted, setReverted] = useState(false) return Read the Marker API {reverted ? 'Checklist attachment removed' : 'Checklist attached'} } ``` ### React Aria The React Aria entry uses the native Forge Marker. Pass an element to render, or forward the supplied props in a render callback. ```sh npm install wss3-forge react-aria-components ``` ```tsx import { Marker, MarkerIcon, MarkerContent } from 'wss3-forge/react-aria' import { Branch16Regular, Search16Regular } from '@fluentui/react-icons' import { Box, Spinner, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function MarkerEvents() { return Created a review branch Checking references… Editorial review Read 3 source notes } export default function Example() { return () } ``` #### Variants ```tsx import { Marker } from 'wss3-forge/react-aria' import { Box, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Variants() { return Draft saved locally Peer review Comments resolved } export default function Example() { return () } ``` #### Separator ```tsx import { Marker } from 'wss3-forge/react-aria' import { Box, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Separators() { return Monday, 8 June Review complete2 unread replies } export default function Example() { return () } ``` #### Border ```tsx import { Marker, MarkerIcon, MarkerContent } from 'wss3-forge/react-aria' import { Branch16Regular, DocumentText16Regular, Search16Regular } from '@fluentui/react-icons' import { Box, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Bordered() { return Created a review branch Found 3 source notes Attached the review summary } export default function Example() { return () } ``` #### Icon ```tsx import { Marker, MarkerIcon, MarkerContent } from 'wss3-forge/react-aria' import { BookOpen16Regular, DocumentText16Regular, Checkmark16Regular } from '@fluentui/react-icons' import { Box, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Icons() { return Added a source note Review complete Published the guide } export default function Example() { return () } ``` #### Status ```tsx import { Marker, MarkerIcon, MarkerContent } from 'wss3-forge/react-aria' import { useState } from 'react' import { DocumentText16Regular } from '@fluentui/react-icons' import { Box, Button, Spinner, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Status() { const [paused, setPaused] = useState(false) return {paused ? : {paused ? 'Checks paused' : 'Checking references…'} } export default function Example() { return () } ``` #### Shimmer ```tsx import { Marker, MarkerContent } from 'wss3-forge/react-aria' import { Box, VStack } from 'wss3-forge' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } function Shimmer() { return Preparing a preview… Indexing source notes… } export default function Example() { return () } ``` #### Links and buttons ```tsx import { useState } from 'react' import { ArrowUndo16Regular, BookOpen16Regular } from '@fluentui/react-icons' import { Box, Text, VStack } from 'wss3-forge' import { Marker, MarkerContent, MarkerIcon } from 'wss3-forge/react-aria' function MarkerStack({ children, gap = 32 }: { children: React.ReactNode; gap?: number }) { return {children} } export default function MarkerActions() { const [reverted, setReverted] = useState(false) return }>Read the Marker API