Migrate from DaisyUI to SkeletonUI

This commit is contained in:
2024-12-12 23:29:24 +01:00
parent 4f342e198a
commit 70edd0182d
15 changed files with 396 additions and 414 deletions

View File

@ -1,29 +1,10 @@
<script lang="ts">
let {
id,
name,
label,
placeholder = "",
type = "text",
value = "",
disabled = false,
required = false,
} = $props();
let { children, type = "text", ...restProps } = $props();
</script>
<label
for={id}
class="input input-bordered mt-2 flex !cursor-default select-none items-center gap-2"
>
{label}
<input
{id}
{name}
{type}
class={disabled ? "pointer-events-none grow !cursor-default" : "grow"}
{disabled}
{required}
{placeholder}
{value}
/>
</label>
<div class="input-group input-group-divider grid-cols-[auto_1fr_auto]">
<div class="input-group-shim select-none text-neutral-900">
{@render children()}
</div>
<input {type} {...restProps} />
</div>