File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,27 @@ export const DisabledWithHoverVariant: Story = {
221
221
} ,
222
222
} ;
223
223
224
+ export const NodeWithCustomTypeField : Story = {
225
+ args : {
226
+ ...INTERNAL_NODE ,
227
+ data : {
228
+ title : 'orders' ,
229
+ fields : [
230
+ {
231
+ name : 'customerId' ,
232
+ type : (
233
+ < span >
234
+ < strong > custom type display</ strong >
235
+ </ span >
236
+ ) ,
237
+ variant : 'default' ,
238
+ glyphs : [ 'key' ] ,
239
+ } ,
240
+ ] ,
241
+ } ,
242
+ } ,
243
+ } ;
244
+
224
245
export const NodeWithPrimaryField : Story = {
225
246
args : {
226
247
...INTERNAL_NODE ,
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export interface NodeField {
138
138
/**
139
139
* The type of the field, for example "objectId".
140
140
*/
141
- type ?: string ;
141
+ type ?: string | React . ReactNode ;
142
142
143
143
/**
144
144
* The depth of the field.
You can’t perform that action at this time.
0 commit comments