Description
HeroUIA field's helper text.
Solidtype_heroui.Description is HeroUI’s description, with the classes
HeroUI’s own descriptionVariants gives. It is a <span>, unless a part
above it gives it its element, as React Aria’s do: inside a
Radio Group it is Kobalte’s group description, which the
group is described by, and inside a radio the radio’s, which its input is
described by. The Radio Group page shows it in its fields.
We'll never share your email with anyone else.
module Description = Solidtype_heroui.Descriptionmodule Input = Solidtype_heroui.Inputmodule Label = Solidtype_heroui.Label
let make () = <div class_="flex flex-col gap-1"> <Label for_="email">"Email"</Label> <Input aria_describedby="email-description" class_="w-64" id="email" placeholder="you@example.com" type_="email" /> <Description id="email-description"> "We'll never share your email with anyone else." </Description> </div>Customization
Section titled “Customization”Tailwind CSS
Section titled “Tailwind CSS”class_ is added after HeroUI’s classes.
Lowercase letters and hyphens only. Used in app.heroui.com/acme
module Description = Solidtype_heroui.Descriptionmodule Input = Solidtype_heroui.Inputmodule Label = Solidtype_heroui.Label
let make () = <div class_="flex w-64 flex-col gap-1"> <Label for_="workspace-slug">"Workspace URL"</Label> <Input id="workspace-slug" placeholder="acme" type_="text" /> <Description class_="leading-relaxed tracking-wide" id="workspace-slug-hint"> "Lowercase letters and hyphens only. Used in app.heroui.com/acme" </Description> </div>Styling Reference
Section titled “Styling Reference”CSS Classes
Section titled “CSS Classes”.description
API Reference
Section titled “API Reference”| React | solidtype | Type | Description |
|---|---|---|---|
className |
class_ |
string |
Added after HeroUI’s classes |
children |
children |
elements | Its text |
Description.Slot
Section titled “Description.Slot”How a description renders below a part, given its classes and its children,
as React Aria’s TextContext gives it.
Beside React
Section titled “Beside React”Original HeroUI documentation: Description.
