File size: 573 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
---
title: Add a Floating Label to an Input
description: To add a floating label to an input component in Chakra UI...
publishedAt: "2024-10-19"
collection: components
---
Floating labels conserve space in forms, particularly on mobile devices where
screen space is limited.
To add a floating label to an input component in Chakra UI, create a styled
input field using the `Field`, `Input`, and `Box` components.
<ExampleTabs name="input-with-floating-label" />
> For more details on Chakra UI's input component, refer to the
> [documentation](/docs/components/input).
|