We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sometimes you want to use a component as a starting point and modify it heavily.
Example: I want to modify the <.card> component.
<.card>
mix petal_components:eject card
And it generates a copy of the card component into my live folder.
card
live
The text was updated successfully, but these errors were encountered:
I'll implement it in the coming months - but if someone wants to contribute just comment here and go for it
Sorry, something went wrong.
maybe use @callback so user could override what he want from component and keep all helpers.
defmodule Ex do @callback h(item) :: item when item: var def h(x), do: IO.inspect(x) end defmodule E do @behaviour Ex def h(x), do: IO.inspect(x) end E.h("go") Ex.h("sas")
Hey, yeah if you can get this working that'd be great. maybe do it for one component and see if it's viable?
No branches or pull requests
Sometimes you want to use a component as a starting point and modify it heavily.
Example: I want to modify the
<.card>
component.And it generates a copy of the
card
component into mylive
folder.The text was updated successfully, but these errors were encountered: