Skip to content

Commit

Permalink
✨ pix-ui: create content with pix icons component
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiaPena committed Jan 22, 2025
1 parent 0cf3db2 commit 8e417e3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions addon/components/content-with-pix-icons.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{#if @iconBefore}}
<PixIcon
class="pix-button__icon pix-button__icon--before"
@ariaHidden={{true}}
@name={{@iconBefore}}
@plainIcon={{@plainIconBefore}}
/>
{{/if}}
{{yield}}
{{#if @iconAfter}}
<PixIcon
class="pix-button__icon pix-button__icon--after"
@name={{@iconAfter}}
@ariaHidden={{true}}
@plainIcon={{@plainIconAfter}}
/>
{{/if}}
1 change: 1 addition & 0 deletions app/components/content-with-pix-icons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@1024pix/pix-ui/components/content-with-pix-icons';

0 comments on commit 8e417e3

Please sign in to comment.