Skip to content

Commit

Permalink
update code example in home
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Oct 13, 2024
1 parent c1f03cb commit 3f87e4d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions core/lib/canary_web/live/home_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,15 @@ defmodule CanaryWeb.HomeLive do
code = """
<canary-root>
<canary-provider-cloud project-key="#{project.public_key}" api-base="#{CanaryWeb.Endpoint.url()}">
<canary-content>
<canary-input slot="input"></canary-input>
<canary-search slot="mode">
<canary-search-results slot="body"></canary-search-results>
</canary-search>
</canary-content>
<canary-modal>
<canary-trigger-searchbar slot="trigger"></canary-trigger-searchbar>
<canary-content>
<canary-input slot="input"></canary-input>
<canary-search slot="mode">
<canary-search-results slot="body"></canary-search-results>
</canary-search>
</canary-content>
</canary-modal>
</canary-provider-cloud>
</canary-root>
"""
Expand Down

0 comments on commit 3f87e4d

Please sign in to comment.