Title Url
Displays the title and URL of a page. The title acts as a clickable link to the page.
#Examples
TitleUrl
provides a clear and concise way to present the title and URL of a page, aiding navigation and enhancing user understanding of link destinations.
Opens in new tab:
Page titlewww.siteimprove.com<TitleUrl
title="Page title"
titleFallback={
<Tooltip
variant={{ type: "text" }}
content={"The page title field is either empty or unknown."}
>
No page title
</Tooltip>
}
url="www.siteimprove.com"
link="https://www.siteimprove.com" // usually link to the page report
/>
#Properties
Opens in new tab:
Page titlewww.siteimprove.com
Property | Description | Defined | Value |
---|---|---|---|
urlRequired | string Value for the link | ||
linkOptional | string Value rendered as the link text in the breadcrumb | ||
titleOptional | string Value for the page title | ||
titleFallbackOptional | element Value for the page title not found / no data | ||
searchQueryOptional | object Value for the query | ||
styleOptional | object Style CSSProperties values | ||
overflowOptional | "ellipsis" | "wrap" Overflow properties | ||
displayModeOptional | "both" | "title" | "url" Should the component display only the title, only the url or both | ||
titleClassNameOptional | string Classname for title display | ||
urlClassNameOptional | string Classname for url display | ||
urlDataObserveKeyOptional | string data observe key for URL | ||
data-observe-keyOptional | string Unique string, used by external script e.g. for event tracking | ||
data-componentOptional | string Name of the component. Should only be set by components since it needs to stable. Used to track component usage | ||
tabIndexOptional | number Tab index of the outermost HTML element of the component | ||
onKeyDownOptional | function Callback for onKeyDown event | ||
onMouseDownOptional | function Callback for onMouseDown event | ||
onMouseEnterOptional | function Callback for onMouseEnter event | ||
onMouseLeaveOptional | function Callback for onMouseLeave event | ||
onFocusOptional | function Callback for onFocus event | ||
onBlurOptional | function Callback for onBlur event | ||
classNameOptional | string Custom className that's applied to the outermost element (only intended for special cases) |
#Guidelines
#Best practices
#Do not use when
#Accessibility
Explore detailed guidelines for this component: Accessibility Specifications