Components
HelperText

Helper Text

The Helper Text component provides you with form helper text and descriptions.

Import

import { HelperText } from '@nostromo/ui-core'
// or
import { HelperText } from '@nostromo/ui-core/helper-text'

Usage

import { HelperText, Input } from '@nostromo/ui-core'
 
export default function Example() {
  return (
    <div className="space-y-2">
      <Input type="password" />
      <HelperText>Password must be at least 8 characters long</HelperText>
    </div>
  )
}

Live Examples

Live Example
☀️
Copy
Storybook →
View Code
import { HelperText, Input } from '@nostromo/ui-core' export default function HelperTextExample() { return ( <div className="space-y-2"> <Input type="password" placeholder="Enter password" /> <HelperText>Password must be at least 8 characters long</HelperText> </div> ) }...

Props

PropTypeDefaultRequiredDescription
variant"default" | "muted" | "error""default"NoVisual variant
size"sm" | "default" | "lg""default"NoSize of the helper text
classNamestringundefinedNoAdditional CSS classes
childrenReact.ReactNodeundefinedNoHelper text content

Standard HTML Props

The HelperText component extends React.HTMLAttributes<HTMLDivElement>, so it accepts all standard HTML div attributes (e.g., id, data-*, aria-*).