dsfr4drupal-1.x-dev/components/segmented/segmented.component.yml
components/segmented/segmented.component.yml
name: DSFR - Segmented control
description: The Segmented Control component allows the user to choose a view type from several available, mutually exclusive display options with a value selected by default.
status: stable
group: DSFR
variants:
sm:
title: Small
description: Component small size
md:
title: Medium
description: Component medium size (default)
props:
properties:
attributes:
type: Drupal\Core\Template\Attribute
title: Attributes
elements:
type: array
title: Elements
items:
type: object
properties:
icon:
type: string
title: Element icon class
description: 'Example: "checkbox-line"'
label:
type: string
title: Element label
value:
type: string
title: Element value
legend:
type: string
title: Legend
legend_inline:
type: boolean
title: Is legend inline?
default: false
legend_invisible:
type: boolean
title: Is legend invisible?
default: false
input_id:
type: string
title: Input identifier
input_name:
type: string
title: Input name
required:
- elements
- legend
libraryOverrides:
dependencies:
- dsfr4drupal/component.segmented
