defmodule Shino.UI.Shell do
@moduledoc """
Provides application shell related components.
"""
use Shino.UI, :component
alias Shino.UI.ButtonLike
alias Shino.UI.Sheet
@doc """
Renders application shell using two column layout.
It's better to have following class on `
<% # ... %>
```
## Responsive design
The breakpoint of responsive design is `md`.
"""
attr :id, :string, default: "shell"
slot :logo, required: true
slot :sidebar, required: true
slot :topbar
slot :main, required: true
def two_column(assigns) do
~H"""
<%= render_slot(@main) %>
"""
end
end