release: WRNexusJS 0.8.0
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
component FieldError {
|
||||
props {
|
||||
field: string = ""
|
||||
message: string = ""
|
||||
color: string = "danger"
|
||||
size: string = "sm"
|
||||
class: string = ""
|
||||
}
|
||||
view {
|
||||
<p {...attrs} id='{field ? field + "-error" : ""}' data-error='{field}' role="alert" hidden='{!message}' class='m-0 min-h-4 text-xs text-[var(--wire-color-danger)] {class}'>{message}</p>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user