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 common style props #46

Open
NEO97online opened this issue Nov 2, 2021 · 0 comments
Open

Add common style props #46

NEO97online opened this issue Nov 2, 2021 · 0 comments
Assignees

Comments

@NEO97online
Copy link

NEO97online commented Nov 2, 2021

Svelte now supports style props: https://svelte.dev/docs#style_props

It allows you to pass props that can be used in css variables. We should add "color" and "size" as style props to avoid needing to write a wrapper element for styling.

The README example would be shortened to:

<script>
  import ChevronCircleUp from 'svelte-icons/fa/FaChevronCircleUp.svelte';
</script>

<ChevronCircleUp --color="red" --size="32px" />
@Introvertuous Introvertuous self-assigned this Feb 23, 2022
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

2 participants