UI ButtonGroup mapping

UI ButtonGroup mapping

I'd like to use a ButtonGroup component for my UI, but I don't know which kind of attributes I can map into this component. I tried with an Enum with a list of values but it was not possible. Can I map a specific type or should I map each button individually?