OctantisWeb.Components.Head (octantis v0.1.12)
View SourceThe stylesheet to make polaris work.
Example
<%!-- lib/octantis_web/live/shop_admin/layouts/root.html.heex --%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="csrf-token" content={get_csrf_token()} />
<meta name="shopify-api-key" content={OctantisWeb.Config.api_key()} />
<OctantisWeb.Components.Head.stylesheet />
<OctantisWeb.Components.Head.javascript />
<script defer data-phx-track-static type="text/javascript" src={~p"/assets/shop_admin.js"}>
<head/>
<body style="background-color: var(--p-color-bg-app); color: var(--p-color-text);">
{@inner_content}
</body>
</html>
Summary
Functions
Attributes
version
(:string
) - The polaris version. Defaults to"13.9.0"
.