use svelte class directive for conditional classes
This commit is contained in:
@ -33,11 +33,9 @@
|
||||
{/if}
|
||||
<div class="flex items-center">
|
||||
<input
|
||||
class={type === 'checkbox'
|
||||
? 'checkbox'
|
||||
: `input input-bordered w-[100%] sm:max-w-[16rem] ${
|
||||
initialType === 'password' ? 'pr-11' : ''
|
||||
}`}
|
||||
class:checkbox={type === 'checkbox'}
|
||||
class:input,input-bordered,w-[100%],sm:max-w-[16rem]={type !== 'checkbox'}
|
||||
class:pr-11={initialType === 'password'}
|
||||
{id}
|
||||
{name}
|
||||
{type}
|
||||
|
Reference in New Issue
Block a user