# Floating Label TextField for Xojo Web 2.0 (WebSDK)

**URL:** <https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631>\
**Category:** Extras\
**Created:** [October 1, 2025, 12:39pm UTC](https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631 "2025-10-01T12:39:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabian\_Eschrich](https://forum.xojo.com/user_avatar/forum.xojo.com/fabian_eschrich/32/292_2.png) [@Fabian\_Eschrich](https://forum.xojo.com/u/Fabian_Eschrich)\
**Post date:** [October 1, 2025, 12:39pm UTC](https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631/1 "2025-10-01T12:39:14Z")

</div>

Hi everyone,

I’ve just released a custom **WebSDKUIControl** for **Xojo Web 2.0** , bringing native [Bootstrap Floating Labels](https://getbootstrap.com/docs/5.0/forms/floating-labels/) to your Xojo Web projects.

🔤 **What it is**

A modern replacement for WebTextField, with floating labels just like you see in Bootstrap-based UIs. The control is built using the official [WebSDK](https://documentation.xojo.com/api/user_interface/web/websdkuicontrol.html), so it’s fully integrated with Xojo’s event system and layout editor.

🌗 **Features**

- Full support for light and dark mode (uses Bootstrap’s standard color schemes)

- Clean drawing in the Xojo layout editor (DrawControlInLayoutEditor)

- Inspector support for:

- Triggers TextChanged and EnterPressed events

- Responsive design with Bootstrap 5 styling

- Open Source on GitHub!

📦 **GitHub Repository**

You can find the full source here:

🔗 [GitHub - FAESCH/Xojo-Floating-Labels: Bootstrap Floating Labels display the label inside the input control. This is a WebSDKUIControl to for use in Xojo](https://github.com/FAESCH/Xojo-Floating-Labels)

![FloatingLabelTextField](https://forum.xojo.com/uploads/default/original/3X/3/e/3e548e2381f3912ff96a64822d71ba0a122450a2.gif)

---

<div class="post-metadata">

**Author:** ![Ricardo\_Cruz](https://forum.xojo.com/user_avatar/forum.xojo.com/ricardo_cruz/32/7852_2.png) [@Ricardo\_Cruz](https://forum.xojo.com/u/Ricardo_Cruz)\
**Post date:** [October 1, 2025, 1:09pm UTC](https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631/2 "2025-10-01T13:09:31Z")

</div>

That’s awesome! Thank you for sharing the control.

---

<div class="post-metadata">

**Author:** ![Sascha\_S](https://forum.xojo.com/user_avatar/forum.xojo.com/sascha_s/32/22328_2.png) [@Sascha\_S](https://forum.xojo.com/u/Sascha_S)\
**Post date:** [October 1, 2025, 1:14pm UTC](https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631/3 "2025-10-01T13:14:49Z")

</div>

I don’t use Xojo Web, but this looks wonderful. Thank you for making it available to the public.

---

<div class="post-metadata">

**Author:** ![Arnaud\_N](https://forum.xojo.com/user_avatar/forum.xojo.com/arnaud_n/32/21824_2.png) [@Arnaud\_N](https://forum.xojo.com/u/Arnaud_N)\
**Post date:** [October 1, 2025, 4:58pm UTC](https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631/4 "2025-10-01T16:58:31Z")

</div>

Indeed, thank you very much!

---

<div class="post-metadata">

**Author:** ![Fabian\_Eschrich](https://forum.xojo.com/user_avatar/forum.xojo.com/fabian_eschrich/32/292_2.png) [@Fabian\_Eschrich](https://forum.xojo.com/u/Fabian_Eschrich)\
**Post date:** [October 3, 2025, 1:47pm UTC](https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631/5 "2025-10-03T13:47:15Z")

</div>

Today I added TextArea to the repository:

![FloatingLabelTextArea](https://forum.xojo.com/uploads/default/original/3X/c/3/c3b2eaa6d00a8b92da2ae8c078495d5c073d9743.gif)

---

<div class="post-metadata">

**Author:** ![AlbertoD](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@AlbertoD](https://forum.xojo.com/u/AlbertoD)\
**Post date:** [October 3, 2025, 1:52pm UTC](https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631/6 "2025-10-03T13:52:17Z")

</div>

Thank you for this.  
Do you plan adding Focus events?

---

<div class="post-metadata">

**Author:** ![Fabian\_Eschrich](https://forum.xojo.com/user_avatar/forum.xojo.com/fabian_eschrich/32/292_2.png) [@Fabian\_Eschrich](https://forum.xojo.com/u/Fabian_Eschrich)\
**Post date:** [October 3, 2025, 2:05pm UTC](https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631/7 "2025-10-03T14:05:09Z")

</div>

I will look into that next week

---

<div class="post-metadata">

**Author:** ![Fabian\_Eschrich](https://forum.xojo.com/user_avatar/forum.xojo.com/fabian_eschrich/32/292_2.png) [@Fabian\_Eschrich](https://forum.xojo.com/u/Fabian_Eschrich)\
**Post date:** [October 9, 2025, 5:56am UTC](https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631/8 "2025-10-09T05:56:52Z")

</div>

I added FocusReceived and FocusLost events to both, TextField and TextArea

---

<div class="post-metadata">

**Author:** ![Robert\_Everts](https://forum.xojo.com/user_avatar/forum.xojo.com/robert_everts/32/18968_2.png) [@Robert\_Everts](https://forum.xojo.com/u/Robert_Everts)\
**Post date:** [October 9, 2025, 6:21am UTC](https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631/9 "2025-10-09T06:21:02Z")

</div>

Very nice! Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Fabian\_Eschrich](https://forum.xojo.com/user_avatar/forum.xojo.com/fabian_eschrich/32/292_2.png) [@Fabian\_Eschrich](https://forum.xojo.com/u/Fabian_Eschrich)\
**Post date:** [December 3, 2025, 11:42am UTC](https://forum.xojo.com/t/floating-label-textfield-for-xojo-web-2-0-websdk/86631/10 "2025-12-03T11:42:45Z")

</div>

I recently added FieldType to FloatingTextField, so you can use

- Password
- Email
- Number
- Telephone
- URL

where supported.
