RuleLink

API / @publicodes/react-ui / RuleLink

function RuleLink<Name>(props): Element

Create a link to a rule in the documentation.

Type Parameters

Type Parameter
Name extends string

Parameters

ParameterTypeDescription
propsobject-
props.aria-label?stringThe aria-label attribute for the link.
props.children?ReactNodeThe children to render inside the link Default The title of the rule
props.currentEngineId?numberThe current engine ID, if applicable.
props.displayIcon?booleanWhether to display an icon next to the link.
props.documentationPathstringThe base path for the documentation.
props.dottedNameNameThe dotted name of the rule.
props.engineEngine<Name>The engine instance containing the rule.
props.href?stringThe href attribute for the link.
props.linkComponent?ComponentType<object>A custom link component to use for rendering the link.
props.onClick?() => void* Custom function when the link is clicked
props.small?booleanWhether to render the link in a smaller size.
props.title?stringThe title attribute for the link.

Returns

Element

Defined in

RuleLink.tsx:20