View Source Phoenix.UI.Components.Drawer (Phoenix UI v0.1.6)

Provides drawer component.

Link to this section Summary

Functions

Renders drawer component.

Hides drawer matching selector.

Shows drawer matching selector.

Link to this section Functions

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 to false.
  • rest (:global)
  • square (:boolean) - Defaults to true.
  • variant (:string) - Defaults to "temporary".
@spec hide_drawer(String.t()) :: struct()

Hides drawer matching selector.

examples

Examples

iex> hide_drawer(selector)
%JS{}

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

hide_drawer(js, selector)

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

Shows drawer matching selector.

examples

Examples

iex> show_drawer(selector)
%JS{}

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

show_drawer(js, selector)

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