|
65 | 65 | - [Removed `passArgsFirst` option](#removed-passargsfirst-option) |
66 | 66 | - [Methods and properties from AddonStore](#methods-and-properties-from-addonstore) |
67 | 67 | - [Methods and properties from PreviewAPI](#methods-and-properties-from-previewapi) |
| 68 | + - [Removals in @storybook/components](#removals-in-storybookcomponents) |
68 | 69 | - [Removals in @storybook/types](#removals-in-storybooktypes) |
69 | 70 | - [--use-npm flag in storybook CLI](#--use-npm-flag-in-storybook-cli) |
70 | 71 | - [hideNoControlsWarning parameter from addon controls](#hidenocontrolswarning-parameter-from-addon-controls) |
@@ -1068,6 +1069,44 @@ The following exports from `@storybook/preview-api` are now removed: |
1068 | 1069 |
|
1069 | 1070 | Please file an issue if you need these APIs. |
1070 | 1071 |
|
| 1072 | +#### Removals in @storybook/components |
| 1073 | + |
| 1074 | +The `TooltipLinkList` UI component used to customize the Storybook toolbar has been updated to use the `icon` property instead of the `left` property to position its content. If you've enabled this property in your `globalTypes` configuration, addons, or any other place, you'll need to replace it with an `icon` property to mimic the same behavior. For example: |
| 1075 | + |
| 1076 | +```diff |
| 1077 | +// .storybook/preview.js|ts |
| 1078 | +// Replace your-framework with the framework you are using (e.g., react, vue3) |
| 1079 | +import { Preview } from '@storybook/your-framework'; |
| 1080 | + |
| 1081 | +const preview: Preview = { |
| 1082 | + globalTypes: { |
| 1083 | + locale: { |
| 1084 | + description: 'Internationalization locale', |
| 1085 | + defaultValue: 'en', |
| 1086 | + toolbar: { |
| 1087 | + icon: 'globe', |
| 1088 | + items: [ |
| 1089 | + { |
| 1090 | + value: 'en', |
| 1091 | + right: '🇺🇸', |
| 1092 | +- left: '$' |
| 1093 | ++ icon: 'facehappy' |
| 1094 | + title: 'English' |
| 1095 | + }, |
| 1096 | + { value: 'fr', right: '🇫🇷', title: 'Français' }, |
| 1097 | + { value: 'es', right: '🇪🇸', title: 'Español' }, |
| 1098 | + { value: 'zh', right: '🇨🇳', title: '中文' }, |
| 1099 | + { value: 'kr', right: '🇰🇷', title: '한국어' }, |
| 1100 | + ], |
| 1101 | + }, |
| 1102 | + }, |
| 1103 | + }, |
| 1104 | +}; |
| 1105 | + |
| 1106 | +export default preview; |
| 1107 | +``` |
| 1108 | +To learn more about the available icons and their names, see the [Storybook documentation](https://storybook.js.org/docs/8.0/faq#what-icons-are-available-for-my-toolbar-or-my-addon). |
| 1109 | + |
1071 | 1110 | #### Removals in @storybook/types |
1072 | 1111 |
|
1073 | 1112 | The following exports from `@storybook/types` are now removed: |
|
0 commit comments