Skip to content

Commit

Permalink
docs(component-overview): example component overview icon on right
Browse files Browse the repository at this point in the history
  • Loading branch information
abhustoft committed Aug 19, 2024
1 parent 636ebd3 commit 39cdb84
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions component-overview/examples/cards/IconCard-iconPosition.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { IconCard } from '@sb1/ffe-cards-react';
import { Icon } from '@sb1/ffe-icons-react';

() => {
const savingsIconLarge =
'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDAiPjxwYXRoIGQ9Ik0yNDQuNzctMTQwLjAwMXEtMjAuNzY5IDAtMzkuMDgzLTEzLjg2Mi0xOC4zMTQtMTMuODYxLTI0LjA3LTMzLjkwNy0yNS04Ny4xMjktNDAuNzg1LTE0Ny42MDEtMTUuNzg1LTYwLjQ3MS0yNC43OTQtMTA0LjI0OS05LjAxLTQzLjc3OC0xMi41MjMtNzYuNDUtMy41MTQtMzIuNjczLTMuNTE0LTY0LjA1IDAtODMuNDE4IDU4LjIzMS0xNDEuNjQ4IDU4LjIzLTU4LjIzMSAxNDEuNzY4LTU4LjIzMWgyMTAuMDAxcTI3LTM2IDY2LTU4IDM4Ljk5OS0yMiA4My45OTktMjIgMTYuNTM4IDAgMjguMjY4IDExLjczMSAxMS43MzEgMTEuNzMgMTEuNzMxIDI4LjI2OCAwIDQuMDc3LTEuMTE2IDcuOTYxLTEuMTE1IDMuODg1LTIuMzQ2IDcuNzMxLTQuMzg1IDExLjc2OS04LjQ2MSAyNS40NjItNC4wNzcgMTMuNjkyLTcuNjE2IDM0Ljc3bDEwNC4wNzggMTA0LjA3N2g0NC4xNzlxMTMuMzkxIDAgMjIuMzM2IDguOTQ2IDguOTQ2IDguOTQ1IDguOTQ2IDIyLjMzNnYxOTAu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2VDY3NS4zODQtNTYwcTAtMTQuNjkyLTEwLjM0Ni0yNS4wMzhUNjQwLTU5NS4zODRxLTE0LjY5MiAwLTI1LjAzOCAxMC4zNDZUNjA0LjYxNi01NjBxMCAxNC42OTIgMTAuMzQ2IDI1LjAzOFQ2NDAtNTI0LjYxNlptLTE0NS4xMjctOTUuMTI4cTEwLjY5OCAwIDE3LjkxMi03LjI1UTUyMC02MzQuMjQzIDUyMC02NDQuOTkzdC03LjIxNS0xNy44NzhxLTcuMjE0LTcuMTI4LTE3LjkxMi03LjEyOEgzNDUuMTI3cS0xMC42OTggMC0xNy45MTIgNy4yNDktNy4yMTUgNy4yNS03LjIxNSAxOHQ3LjIxNSAxNy44NzhxNy4yMTQgNy4xMjggMTcuOTEyIDcuMTI4aDE0OS43NDZaTTQ4MC00OTkuODk3WiIvPjwvc3ZnPg==';
return (
<IconCard
icon={<Icon fileUrl={savingsIconLarge} size="lg" />}
iconPosition="right"
>
{({ Title, Subtext }) => (
<>
<Title>Navigering</Title>
<Subtext>7 004,00</Subtext>
</>
)}
</IconCard>
);
};

0 comments on commit 39cdb84

Please sign in to comment.