Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blade Components #69

Merged
merged 15 commits into from Feb 5, 2021
Merged

Blade Components #69

merged 15 commits into from Feb 5, 2021

Conversation

inxilpro
Copy link
Contributor

This introduces Aire blade components:

<x-aire::form route="users.store">

<x-aire::email name="email" label="Your Email Address" />
<x-aire::input name="name" label="Your Name" />

<x-aire::submit />

</x-aire::form>

Which is equivalent to:

{{ Aire::open()->route('users.store') }}

{{ Aire::email('email', 'Your Email Address') }}
{{ Aire::input('name', 'Your Name') }}

{{ Aire::submit() }}

{{ Aire::close() }}

Right now this just passes your attributes up to the Aire element. For a future release we will probably make the Blade components the primary implementation and offer the Aire:: helpers only for backwards-compatibility's sake.

@inxilpro inxilpro merged commit e94489d into master Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant