View Source Phoenix.UI.Components.Backdrop (Phoenix UI v0.1.9)
Provides Backdrop component.
Link to this section Summary
Link to this section Functions
@spec backdrop(Phoenix.LiveView.Socket.assigns()) :: Phoenix.LiveView.Rendered.t()
Renders backdrop component.
examples
Examples
```
<.backdrop/>
```
attributes
Attributes
element
(:string
) - Defaults to"div"
.extend_class
(:string
)invisible
(:boolean
) - Defaults tofalse
.transition_duration
(:integer
) - Defaults to300
.- Global attributes are accepted. Supports all globals plus:
["open"]
.
slots
Slots
inner_block
Hides backdrop by selector.
examples
Examples
iex> hide_backdrop(selector)
%JS{}
iex> hide_backdrop(js, selector)
%JS{}
Shows backdrop by selector.
examples
Examples
iex> show_backdrop(selector)
%JS{}
iex> show_backdrop(js, selector)
%JS{}