@@ -232,6 +232,12 @@ type PropsPassedToSelect = {
232232 * If the selected `SimpleSelect.Option`'s `renderAfterLabel` value is empty, default arrow icon will be rendered.
233233 */
234234 isOptionContentAppliedToInput ?: boolean
235+
236+ /**
237+ * In `stacked` mode the input is below the label, in `inline` mode the
238+ * container is to the right/left (depending on text direction)
239+ */
240+ layout ?: 'stacked' | 'inline'
235241}
236242
237243type PropKeys = keyof SimpleSelectOwnProps
@@ -248,6 +254,7 @@ type SimpleSelectProps = PickPropsWithExceptions<
248254 | 'onRequestSelectOption'
249255 | 'inputValue'
250256 | 'isShowingOptions'
257+ | 'layout'
251258> &
252259 SimpleSelectOwnProps &
253260 OtherHTMLAttributes <
@@ -294,7 +301,8 @@ const propTypes: PropValidators<PropKeys> = {
294301 renderBeforeInput : PropTypes . oneOfType ( [ PropTypes . node , PropTypes . func ] ) ,
295302 renderAfterInput : PropTypes . oneOfType ( [ PropTypes . node , PropTypes . func ] ) ,
296303 children : ChildrenPropTypes . oneOf ( [ Group , Option ] ) ,
297- isOptionContentAppliedToInput : PropTypes . bool
304+ isOptionContentAppliedToInput : PropTypes . bool ,
305+ layout : PropTypes . oneOf ( [ 'stacked' , 'inline' ] )
298306}
299307
300308const allowedProps : AllowedPropKeys = [
@@ -326,7 +334,8 @@ const allowedProps: AllowedPropKeys = [
326334 'renderEmptyOption' ,
327335 'renderBeforeInput' ,
328336 'renderAfterInput' ,
329- 'children'
337+ 'children' ,
338+ 'layout'
330339]
331340
332341export type { SimpleSelectProps , SimpleSelectState }
0 commit comments