style: format codebase
This commit is contained in:
@@ -195,7 +195,10 @@ defmodule ComponentsElixirWeb.CoreComponents do
|
||||
name={@name}
|
||||
value="true"
|
||||
checked={@checked}
|
||||
class={@class || "checkbox checkbox-sm border-base-300 checked:bg-primary checked:border-primary"}
|
||||
class={
|
||||
@class ||
|
||||
"checkbox checkbox-sm border-base-300 checked:bg-primary checked:border-primary"
|
||||
}
|
||||
{@rest}
|
||||
/>{@label}
|
||||
</span>
|
||||
@@ -213,7 +216,10 @@ defmodule ComponentsElixirWeb.CoreComponents do
|
||||
<select
|
||||
id={@id}
|
||||
name={@name}
|
||||
class={[@class || "w-full select bg-base-100 border-base-300 text-base-content", @errors != [] && (@error_class || "select-error border-error")]}
|
||||
class={[
|
||||
@class || "w-full select bg-base-100 border-base-300 text-base-content",
|
||||
@errors != [] && (@error_class || "select-error border-error")
|
||||
]}
|
||||
multiple={@multiple}
|
||||
{@rest}
|
||||
>
|
||||
@@ -235,7 +241,8 @@ defmodule ComponentsElixirWeb.CoreComponents do
|
||||
id={@id}
|
||||
name={@name}
|
||||
class={[
|
||||
@class || "w-full textarea bg-base-100 border-base-300 text-base-content placeholder:text-base-content/50",
|
||||
@class ||
|
||||
"w-full textarea bg-base-100 border-base-300 text-base-content placeholder:text-base-content/50",
|
||||
@errors != [] && (@error_class || "textarea-error border-error")
|
||||
]}
|
||||
{@rest}
|
||||
@@ -258,7 +265,8 @@ defmodule ComponentsElixirWeb.CoreComponents do
|
||||
id={@id}
|
||||
value={Phoenix.HTML.Form.normalize_value(@type, @value)}
|
||||
class={[
|
||||
@class || "w-full input bg-base-100 border-base-300 text-base-content placeholder:text-base-content/50",
|
||||
@class ||
|
||||
"w-full input bg-base-100 border-base-300 text-base-content placeholder:text-base-content/50",
|
||||
@errors != [] && (@error_class || "input-error border-error")
|
||||
]}
|
||||
{@rest}
|
||||
|
||||
Reference in New Issue
Block a user