react-code-dataset / chakra-ui /apps /www /content /guides /component-floating-input-label.mdx
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
573 Bytes
---
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).