SupportedRenderers
API / @publicodes/react-ui / SupportedRenderers
type SupportedRenderers = object; Defined in: contexts.tsx:13
The custom renderers for the markdown content.
Properties
Accordion?
optional Accordion?: ComponentType<AccordionProps>; Defined in: contexts.tsx:35
Accordion used for developer documentation.
Code?
optional Code?: ComponentType<CodeProps>; Defined in: contexts.tsx:39
Block of code in pre
Head?
optional Head?: ComponentType<{
children: ReactNode;
}>; Defined in: contexts.tsx:24
Link?
optional Link?: ComponentType<{
aria-label?: string;
children: ReactNode;
href?: string;
onClick?: () => void;
small?: boolean;
title?: string;
to?: string;
}>; Defined in: contexts.tsx:14
References?
optional References?: typeof References; Defined in: contexts.tsx:31
Text?
optional Text?: ComponentType<{
children: string;
}>; Defined in: contexts.tsx:30
Used to render a rule description or title. Useful to parse markdown, links or emojies.