How to create a form using ui components in frontend?

Advice to create a custom form ui components in frontend.