ChannelRef
Inline clickable channel reference in message text — monospace, colored by type.
Import
import { ChannelRef } from "@gumtree/ui/chat/ChannelRef" ; Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | "auto" | "custom" | "auto" | Channel type (auto = orange, custom = green) |
href | string | - | Link URL |
children | ComponentChildren | - | Channel path text |
Examples
Auto and Custom Refs
Auto-generated channel refs are orange, custom channels are green.
discussion in !necessary/example-app/pr/131, also cross-posted to #design
< span class = "text-xs" >
discussion in < ChannelRef type = "auto" > !necessary/example-app/pr/131 </ ChannelRef > ,
also cross - posted to < ChannelRef type = "custom" > #design< / ChannelRef >
< / span >