MCPcopy
hub / github.com/udecode/plate / createItem

Function createItem

packages/list/src/lib/normalizers/normalizeListStart.slow.tsx:70–95  ·  view source on GitHub ↗
(
  text: string,
  {
    indent = 1,
    listRestart,
    listRestartPolite,
    listStart,
    listStyleType = 'decimal',
  }: {
    indent?: number;
    listRestart?: number;
    listRestartPolite?: number;
    listStart?: number;
    listStyleType?: string;
  } = {}
)

Source from the content-addressed store, hash-verified

68 });
69
70const createItem = (
71 text: string,
72 {
73 indent = 1,
74 listRestart,
75 listRestartPolite,
76 listStart,
77 listStyleType = 'decimal',
78 }: {
79 indent?: number;
80 listRestart?: number;
81 listRestartPolite?: number;
82 listStart?: number;
83 listStyleType?: string;
84 } = {}
85) => (
86 <hp
87 indent={indent}
88 listRestart={listRestart}
89 listRestartPolite={listRestartPolite}
90 listStart={listStart}
91 listStyleType={listStyleType}
92 >
93 {text}
94 </hp>
95);
96
97const createHeadingItem = (
98 text: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…