• Get Started
    • Introduction
    • Installation
    • Theming
  • Layout
    • Drawer
    • Footer
    • Hero
    • Indicator
    • Join
    • Stack
    • Divider
  • Navigation
    • Breadcrumbs
    • Dock
    • Menu
    • Link
    • Navbar
    • Pagination
    • Steps
    • Tabs
  • Data Display
    • Accordion
    • Avatar
    • Badge
    • Calendar
    • Card
    • Carousel
    • Chat
    • Collapse
    • Countdown
    • Diff
    • Kbd
    • List
    • Mask
    • Mockup
    • Stat
    • Table
    • Timeline
  • Feedback
    • Alert
    • Loading
    • Modal
    • Progress
    • Skeleton
    • Status
    • Toast
    • Tooltip
  • Forms
    • Button
    • Checkbox
    • Dropdown
    • File Input
    • Fieldset
    • Filter
    • Input
    • Label
    • Radio
    • Range
    • Rating
    • Select
    • Toggle
    • Textarea
  • Effects
    • Hover 3D Card
    • Hover Gallery
    • Speed Dial
    • Swap
    • Text Rotate
    • Theme Controller
jsx daisyUI

    No recently viewed docs

  • Get Started
    • Introduction
    • Installation
    • Theming
  • Layout
    • Drawer
    • Footer
    • Hero
    • Indicator
    • Join
    • Stack
    • Divider
  • Navigation
    • Breadcrumbs
    • Dock
    • Menu
    • Link
    • Navbar
    • Pagination
    • Steps
    • Tabs
  • Data Display
    • Accordion
    • Avatar
    • Badge
    • Calendar
    • Card
    • Carousel
    • Chat
    • Collapse
    • Countdown
    • Diff
    • Kbd
    • List
    • Mask
    • Mockup
    • Stat
    • Table
    • Timeline
  • Feedback
    • Alert
    • Loading
    • Modal
    • Progress
    • Skeleton
    • Status
    • Toast
    • Tooltip
  • Forms
    • Button
    • Checkbox
    • Dropdown
    • File Input
    • Fieldset
    • Filter
    • Input
    • Label
    • Radio
    • Range
    • Rating
    • Select
    • Toggle
    • Textarea
  • Effects
    • Hover 3D Card
    • Hover Gallery
    • Speed Dial
    • Swap
    • Text Rotate
    • Theme Controller

© 2026 jsx-daisyui. All rights reserved. | Built with DaisyUI and React.

Label

A set of label components for associating text with form inputs. Each component maps to a single DaisyUI pattern — pick the one that fits your use case.

Installation
npx jsx-daisyui add label

Input with Prefix

label-input-prefix

Input with Suffix

label-input-suffix

Input with Prefix and Suffix

label-input-both

Select Field

label-select

Floating Label

label-floating

Floating Label Sizes

label-floating-sizes

Plain Label

label-plain

Props

InputField

Wraps an <input> in a DaisyUI input container. Place Label.Prefix or Label.Suffix as children to render styled spans on either side of the input.

Prefix

A <span> rendered before the input inside an InputField.

PropTypeDefaultDescription
childrenReact.ReactNode-Content shown before the input (e.g. "https://", "$").

Suffix

A <span> rendered after the input inside an InputField.

PropTypeDefaultDescription
childrenReact.ReactNode-Content shown after the input (e.g. ".com", "USD").

SelectField

Wraps a <select> in a DaisyUI select container with an optional label span before it.

PropTypeDefaultDescription
labelReact.ReactNode-Text rendered before the select (e.g. "Type", "Currency").

FloatingLabel

Wraps an <input> with a floating label that rises above the field on focus or when filled. Size the input via the input-xs/sm/md/lg/xl class on the child.

PropTypeDefaultDescription
labelstring-The text that floats above the input on focus.