Files
heroui-vue/packages/styles/components/textfield.css
T
2026-10-21 22:33:19 +08:00

26 lines
625 B
CSS

/* 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;
}
}