You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/__tests__/__snapshots__/documenter.test.ts.snap
+95Lines changed: 95 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -94,3 +94,98 @@ Defaults to \`false\`.",
94
94
"releaseStatus": "stable",
95
95
}
96
96
`;
97
+
98
+
exports[`definition for code-view matches the snapshot > code-view 1`] =`
99
+
{
100
+
"dashCaseName": "code-view",
101
+
"events": [],
102
+
"functions": [],
103
+
"name": "CodeView",
104
+
"properties": [
105
+
{
106
+
"description": "Adds an \`aria-label\` to the component. Use this label when there is not enough context around the code snippet to describe its purpose or content.",
107
+
"name": "ariaLabel",
108
+
"optional": true,
109
+
"type": "string",
110
+
},
111
+
{
112
+
"description": "Adds \`aria-labelledby\` to the component. Use this property to reference the ID of an existing element that provides a descriptive label for the code snippet.",
113
+
"name": "ariaLabelledby",
114
+
"optional": true,
115
+
"type": "string",
116
+
},
117
+
{
118
+
"description": "The code content to be displayed.",
119
+
"name": "content",
120
+
"optional": false,
121
+
"type": "string",
122
+
},
123
+
{
124
+
"description": "A function to perform custom syntax highlighting.",
125
+
"inlineType": {
126
+
"name": "(code: string) => React.ReactNode",
127
+
"parameters": [
128
+
{
129
+
"name": "code",
130
+
"type": "string",
131
+
},
132
+
],
133
+
"returnType": "React.ReactNode",
134
+
"type": "function",
135
+
},
136
+
"name": "highlight",
137
+
"optional": true,
138
+
"type": "((code: string) => React.ReactNode)",
139
+
},
140
+
{
141
+
"description": "An object containing all the necessary localized strings required by the component. The object should contain:
142
+
143
+
* \`lineNumberLabel\` - Label for the column that displays line numbers (when line numbers are visible)
144
+
* \`codeLabel\` - Label for the column that displays the code content (when line numbers are visible)",
145
+
"inlineType": {
146
+
"name": "CodeViewProps.I18nStrings",
147
+
"properties": [
148
+
{
149
+
"name": "codeLabel",
150
+
"optional": true,
151
+
"type": "string",
152
+
},
153
+
{
154
+
"name": "lineNumberLabel",
155
+
"optional": true,
156
+
"type": "string",
157
+
},
158
+
],
159
+
"type": "object",
160
+
},
161
+
"name": "i18nStrings",
162
+
"optional": true,
163
+
"type": "CodeViewProps.I18nStrings",
164
+
},
165
+
{
166
+
"description": "Controls the display of line numbers.
167
+
168
+
Defaultsto \`false\`.",
169
+
"name": "lineNumbers",
170
+
"optional": true,
171
+
"type": "boolean",
172
+
},
173
+
{
174
+
"description": "Controls whether line-wrapping is enabled when content would overflow the component.
175
+
176
+
Defaultsto \`false\`.",
177
+
"name": "wrapLines",
178
+
"optional": true,
179
+
"type": "boolean",
180
+
},
181
+
],
182
+
"regions": [
183
+
{
184
+
"description": "An optional slot to display a button to enable users to perform actions, such as copy or download the code snippet.",
0 commit comments