Skip to content

Commit

Permalink
Merge pull request #86 from lara-zeus/embed-forms
Browse files Browse the repository at this point in the history
add docs on how to embed the form in any blade file
  • Loading branch information
atmonshi authored Jun 30, 2023
2 parents 1a6f4fd + 00635c1 commit 193c89a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/embed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Embed the Form
weight: 8
---

## Embed the Form

to Embed the Form in any blade page, simply use:

```html
<livewire:bolt.fill-form slug="feedback" />
```

and [this](https://demo.larazeus.com/embed) is how the form look in an empty page.

### Compiling assets
* make sure to include all the assets needed to render the form,
* take a look at creating [custom themes](https://filamentphp.com/docs/2.x/admin/appearance#building-themes) for Filament.
* also you must include zeus assets, the [frontend.css](https://github.com/lara-zeus/core/blob/main/resources/css/frontend.css) and [frontend.js](https://github.com/lara-zeus/core/blob/main/resources/js/filament.js)

or you can simply include the pre compiled files from zeus core:

```html
<link rel="stylesheet" href="{{ asset('vendor/zeus/frontend.css') }}">
<script src="{{ asset('vendor/zeus/app.js') }}" defer></script>
```

0 comments on commit 193c89a

Please sign in to comment.