Create a custom element in Webform?
You need to create a 'Form Element' to process, validate, and render an input and corresponding 'WebformElement' to integrate the input with the Webform module.
You can use the Webform Example Element module as a starting point.