I'm trying to access the key of a list (Text) in a paragraph twig file
This is what I have in my list
small|Small Item
big|Big Item
{{content.field_option.0['#context'].value}}
{% set value = content.field_option.0['#markup'] %}
{{ value }}
I always got the text. Small Item or Big Item. I would like to obtain small or big of course depending of the user selection.
I'm going to use this value as an HTML Class.
Thanks for your help