Jun 4, 2023
In preview.ts
, you can specify the exact order:
const preview = {
parameters: {
options: {
storySort: {
order:
[
'Level 1',
[
'Level 11',
'Level 12',
[
'Level 121',
'Level 122',
],
],
'Level 2',
[
'Level 21',
[
'Level 211',
'Level 212',
'Level 213',
],
'Level 22',
]
],
},
},
}
};
For your case:
const preview = {
parameters: {
options: {
storySort: {
order:
[
'Primary',
'Secondary',
'Text',
'Outline',
'Outline',
],
},
},
}
};