RulePage

API / @publicodes/react-ui / RulePage

function RulePage(props): Element

Display the documentation page of a given rule

See the sandbox to see the component in action (it is displayed on the right screen).

Parameters

ParameterTypeDescription
propsobject-
props.apiDocumentationUrl?stringThe URL for the API documentation.
props.apiEvaluateUrl?stringThe URL for the API evaluation.
props.documentationPathstringThe base path on which the documentation will be mounted. For example, if it is /documentation, the URL of the rule remuneration.primes will be /documentation/remuneration/primes.
props.engineEngine<string>The engine object whose calculations we want to display.
props.language"fr" | "en"The language in which to display the documentation (currently, only ‘fr’ and ‘en’ are supported).
props.mobileMenuPortalId?stringThe ID of the portal for the mobile menu.
props.npmPackage?stringThe name of the npm package.
props.openNavButtonPortalId?stringThe ID of the portal for the open navigation button.
props.renderersSupportedRenderersThe React components that will be used in the documentation page.
props.rulePathstringThe path of the rule to display.
props.searchBar?booleanDisplays a search bar to navigate through the documentation Default false
props.showDevSection?booleanWhether to show the development section. Default true

Returns

Element

Defined in

rule/RulePage.tsx:36