{{layout-deprecate
  '<Layout::Cluster>: @wrapperClasses is not used anymore, the wrapper element is gone.'
  (if @wrapperClasses false true)
  id='ember-layout-components.cluster-wrapper-classes'
  until='2.1.0'
  since='2.0.0'
  for='ember-layout-components'
}}

<div
  class={{layout-join-classes
    'layout-cluster'
    (layout-class-if @position 'right' 'layout-cluster--right')
    (layout-class-if @position 'spaced' 'layout-cluster--spaced')
    (layout-class-if @position 'center' 'layout-cluster--center')
    (layout-class-if @gap 'none' 'layout-cluster--no-gap')
    (layout-class-if @gap 'xsmall' 'layout-cluster--xsmall')
    (layout-class-if @gap 'small' 'layout-cluster--small')
    (layout-class-if @gap 'large' 'layout-cluster--large')
    (layout-class-if @gap 'xlarge' 'layout-cluster--xlarge')
    (layout-class-if @gapVertical 'none' 'layout-cluster--vertical-no-gap')
    (layout-class-if @gapVertical 'xsmall' 'layout-cluster--vertical-xsmall')
    (layout-class-if @gapVertical 'small' 'layout-cluster--vertical-small')
    (layout-class-if @gapVertical 'medium' 'layout-cluster--vertical-medium')
    (layout-class-if @gapVertical 'large' 'layout-cluster--vertical-large')
    (layout-class-if @gapVertical 'xlarge' 'layout-cluster--vertical-xlarge')
    (layout-class-if
      @fullWidthOnMobile true 'layout-cluster--full-width-on-mobile'
    )
    (layout-class-if @noWrap true 'layout-cluster--no-wrap')
    (layout-class-if @fullHeight true 'layout-cluster--full-height')
    (layout-class-if @verticalAlign 'top' 'layout-cluster--top')
    (layout-class-if @verticalAlign 'bottom' 'layout-cluster--bottom')
    (layout-class-if @verticalAlign 'stretch' 'layout-cluster--stretch')
    (layout-class-if
      (layout-has-flex-gap-support) false 'layout-cluster--no-gap-support'
    )
  }}
  ...attributes
>
  {{yield (component 'layout/cluster/item')}}
</div>