View Source Phoenix.UI.Components.Drawer (Phoenix UI v0.1.5)
Provides drawer component.
Link to this section Summary
Link to this section Functions
@spec drawer(Phoenix.LiveView.Socket.assigns()) :: Phoenix.LiveView.Rendered.t()
Renders drawer component.
examples
Examples
```
<.drawer id="basic_drawer">
content
</.drawer>
```
attributes
Attributes
anchor
(:string
) - Defaults to"left"
.extend_class
(:string
)id
(:string
) (required)open
(:boolean
) - Defaults tofalse
.rest
(:global
)square
(:boolean
) - Defaults totrue
.variant
(:string
) - Defaults to"temporary"
.
Hides drawer matching selector.
examples
Examples
iex> hide_drawer(selector)
%JS{}
iex> hide_drawer(js, selector)
%JS{}
Shows drawer matching selector.
examples
Examples
iex> show_drawer(selector)
%JS{}
iex> show_drawer(js, selector)
%JS{}