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

Add attribute to component #14

Open
esurat20 opened this issue Dec 12, 2019 · 0 comments
Open

Add attribute to component #14

esurat20 opened this issue Dec 12, 2019 · 0 comments

Comments

@esurat20
Copy link

esurat20 commented Dec 12, 2019

@some_attr

component my_list,
ul [styles: @Styles], @CONTENT
end

my_list styles: %{font-color: blue, font-size: @some_attr} do
content
end

Hello, i tried to add an attribute like a variable for the component but got an error while compilation.

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

No branches or pull requests

1 participant