Draw a rectangle using the Rectangle tool
Add text on top of the rectangle with the Text tool
Select the rectangle and text
Use Auto Layout to group them if needed
Set the rectangle as the background shape
Adjust padding, corner radius, and stroke as desired
If you want editable input-style text, keep the text layer separate
Turn the box into a component if you want to reuse it
Duplicate the component for multiple typable boxes
