Base Components
Hint
Hint components provide contextual information or guidance beneath inputs, selects, and textareas, enhancing usability and user experience.
This is a hint text to help user.
Installation
Create a hint.tsx file and paste the following code into it.
/components/ui/hint.tsx
Update the import paths to match your project setup.
Examples
Disabled
This is a hint text to help user.
Has Error
This is a hint text to help user.
API Reference
Hint.Root
This component is based on the <div> element and supports all of its props. And adds:
| Prop | Type | Default |
|---|---|---|
hasError | boolean | |
disabled | boolean |
Hint.Icon
The Hint.Icon component is polymorphic, allowing you to change the underlying HTML element using the as prop.
| Prop | Type | Default |
|---|---|---|
as | React.ElementType | div |
© 2024 AlignUI Design System. All rights reserved.
