Is it possible to have an item in a list be a button if it meets a specific criteria?


I have a list inside of a card that I want users to be able to click to display the entire string if the string length is long enough for the content to be shortened and an ellipsis be added. So basically a list item would be like

Version 3.353433
OS Version Windows 10 64-Bit… >

The version item would be a normal list item, and the OS Version since the overflow is occurring would turn into a button to display the entire content of that field