Detail

API Reference
Detail
Renders a markdown (CommonMark) string with an optional metadata panel.
Typically used as a standalone view or when navigating from a List.
Example
Props
actions
A reference to an ActionPanel.
React.ReactNode
-
isLoading
Indicates whether a loading bar should be shown or hidden below the search bar
boolean
-
markdown
The CommonMark string to be rendered.
string
-
metadata
The Detail.Metadata to be rendered in the right side area
React.ReactNode
-
navigationTitle
The main title for that view displayed in Raycast
string
-
Detail.Metadata
A Metadata view that will be shown in the right-hand-side of the Detail.
Use it to display additional structured data about the main content shown in the Detail view.

Example
Props
children*
The elements of the Metadata view.
React.ReactNode
-
Detail.Metadata.Label
A single value with an optional icon.

Example
Props
title*
The title of the item.
string
-
text
The text value of the item. Specifying color will display the text in the provided color. Defaults to Color.PrimaryText.
string or { color?: Color; value: string }
-
Detail.Metadata.Link
An item to display a link.

Example
Props
target*
The target of the link.
string
-
text*
The text value of the item.
string
-
title*
The title shown above the item.
string
-
Detail.Metadata.TagList
A list of Tags displayed in a row.

Example
Props
children*
The tags contained in the TagList.
React.ReactNode
-
title*
The title shown above the item.
string
-
Detail.Metadata.TagList.Item
A Tag in a Detail.Metadata.TagList.
Props
color
Changes the text color to the provided color and sets a transparent background with the same color.
-
onAction
Callback that is triggered when the item is clicked.
() => void
-
text
The optional tag text. Required if the tag has no icon.
string
-
Detail.Metadata.Separator
A metadata item that shows a separator line. Use it for grouping and visually separating metadata items.

Last updated

