@@ -111,16 +111,6 @@ export const NoTitle: Story = {
111111 } ,
112112} ;
113113
114- export default {
115- component : AlertBox ,
116- argTypes : {
117- size : {
118- options : [ 'default' , 'small' ] ,
119- control : { type : 'radio' } ,
120- } ,
121- } ,
122- } as Meta ;
123-
124114export const SmallContainer : Story = {
125115 render : args => (
126116 < div className = "w-200" >
@@ -141,3 +131,58 @@ export const SmallContainer: Story = {
141131 size : 'default' ,
142132 } ,
143133} ;
134+
135+ export const WithLongContent : Story = {
136+ args : {
137+ level : 'warning' ,
138+ title : 'Stability: 1' ,
139+ children : (
140+ < span >
141+ Experimental. Please migrate away from this API, if you can. We do not
142+ recommend using the{ ' ' }
143+ < a href = "#async_hookscreatehookcallbacks" >
144+ < code > createHook</ code >
145+ </ a >
146+ ,{ ' ' }
147+ < a href = "#class-asynchook" >
148+ < code > AsyncHook</ code >
149+ </ a >
150+ , and
151+ < a href = "#async_hooksexecutionasyncresource" >
152+ < code > executionAsyncResource</ code >
153+ </ a > { ' ' }
154+ APIs as they have usability issues, safety risks, and performance
155+ implications. Async context tracking use cases are better served by the
156+ stable{ ' ' }
157+ < a href = "async_context.html#class-asynclocalstorage" >
158+ < code > AsyncLocalStorage</ code >
159+ </ a > { ' ' }
160+ API. If you have a use case for
161+ < code > createHook</ code > , < code > AsyncHook</ code > , or{ ' ' }
162+ < code > executionAsyncResource</ code > beyond the context tracking need
163+ solved by{ ' ' }
164+ < a href = "async_context.html#class-asynclocalstorage" >
165+ < code > AsyncLocalStorage</ code >
166+ </ a > { ' ' }
167+ or diagnostics data currently provided by{ ' ' }
168+ < a href = "diagnostics_channel.html" > Diagnostics Channel</ a > , please open
169+ an issue at{ ' ' }
170+ < a href = "https://github.com/nodejs/node/issues" >
171+ https://github.com/nodejs/node/issues
172+ </ a > { ' ' }
173+ describing your use case so we can create a more purpose-focused API.
174+ </ span >
175+ ) ,
176+ size : 'default' ,
177+ } ,
178+ } ;
179+
180+ export default {
181+ component : AlertBox ,
182+ argTypes : {
183+ size : {
184+ options : [ 'default' , 'small' ] ,
185+ control : { type : 'radio' } ,
186+ } ,
187+ } ,
188+ } as Meta ;
0 commit comments