feat: establish shared field and form foundation
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc.
|
||||
* See third-party/HEROUI-LICENSE. Modified: hv- namespace. */
|
||||
/* Text field styles */
|
||||
/* use textfield instead of text-field to avoid conflict with Tailwind `text-` prefix */
|
||||
.hv-textfield {
|
||||
@apply flex flex-col gap-1;
|
||||
|
||||
&[data-invalid="true"],
|
||||
&[aria-invalid="true"] {
|
||||
[data-slot="description"] {
|
||||
@apply hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Full width modifier */
|
||||
.hv-textfield--full-width {
|
||||
@apply w-full;
|
||||
|
||||
/* Automatically make Input full width when TextField is full width */
|
||||
[data-slot="input"],
|
||||
[data-slot="textarea"] {
|
||||
@apply w-full;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user