Skip to main content

UnitaryListStyleSpec

export
interface UnitaryListStyleSpec {
  Component: ComponentType<UnitaryCounterRendererProps>;
  counterStyleRenderer: CounterStyleRenderer;
  type: "unitary";
}

Specs for a list item marker renderer with only one representation. The "Component" should render this representation, minus prefix and suffix. The rendered component should have a maximum width of 0.6 * fontSize, and a height of lineHeight.

Fields#

Component#

required
Component: ComponentType<UnitaryCounterRendererProps>;

counterStyleRenderer#

required
counterStyleRenderer: CounterStyleRenderer;

type#

required
type: "unitary";