LiveFilter.Components.Helpers (LiveFilter v0.1.8)

Copy Markdown View Source

Shared helper functions and icons for LiveFilter components.

Summary

Functions

Renders a checkmark icon.

Renders a left chevron icon.

Renders a right chevron icon.

Compares two values for equality, handling type coercion between strings and integers.

Renders an X/close icon.

Functions

check_icon(assigns)

Renders a checkmark icon.

Attributes

  • class (:string) - Defaults to "shrink-0 text-base-content".

chevron_left_icon(assigns)

Renders a left chevron icon.

Attributes

  • class (:string) - Defaults to "shrink-0".

chevron_right_icon(assigns)

Renders a right chevron icon.

Attributes

  • class (:string) - Defaults to "shrink-0".

values_match?(a, b)

Compares two values for equality, handling type coercion between strings and integers.

x_icon(assigns)

Renders an X/close icon.

Attributes

  • class (:string) - Defaults to "shrink-0".