This i<old>This is based on the searchField from Discover. It's a suggestion from @ngraham and I find it's a great idea.
Note: Because it's based on the searchField from Discover licensed under GPL2-or-later and Kirigami is licensed under LGPL2-or-later, this patch need the authorization from @apol and @ngraham, before landing.</old>
Now it's a generic TextField with the possibility to add a button left and a button right. It's a suggestion from @ngraham and I find it's a great ideaAlso update the Sidebar example to use this component.
Note: Because it's based on the searchField from Discover licensed under GPL2-or-later and Kirigami is licensed under LGPL2-or-later, this patch need the authorization from @apol and @ngraham, before landing.There are still two problems: how should I best handle the icon in the Kirigami.Action and should I declare this new component in Kirigami 2.6 or Kirigami 2.7