View Source Phoenix.UI.Components.Backdrop (Phoenix UI v0.1.5)

Provides Backdrop component.

Link to this section Summary

Functions

Renders backdrop component.

Hides backdrop by selector.

Shows backdrop by selector.

Link to this section Functions

Renders backdrop component.

examples

Examples

```
<.backdrop/>
```

attributes

Attributes

  • element (:string) - Defaults to "div".
  • extend_class (:string)
  • invisible (:boolean) - Defaults to false.
  • rest (:global) - Supports all globals plus: ["open"].
  • transition_duration (:integer) - Defaults to 300.

slots

Slots

  • inner_block
@spec hide_backdrop(String.t()) :: struct()

Hides backdrop by selector.

examples

Examples

iex> hide_backdrop(selector)
%JS{}

iex> hide_backdrop(js, selector)
%JS{}
Link to this function

hide_backdrop(js, selector)

View Source
@spec hide_backdrop(
  struct(),
  String.t()
) :: struct()
@spec show_backdrop(String.t()) :: struct()

Shows backdrop by selector.

examples

Examples

iex> show_backdrop(selector)
%JS{}

iex> show_backdrop(js, selector)
%JS{}
Link to this function

show_backdrop(js, selector)

View Source
@spec show_backdrop(
  struct(),
  String.t()
) :: struct()