Skip to content

Commit

Permalink
docs: v5 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
denkristoffer committed Jan 11, 2024
1 parent cc98332 commit 4cf7dc4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 66 deletions.
18 changes: 18 additions & 0 deletions packages/components/icon/examples/IconColorsExample.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as React from 'react';
import { CalendarBlankIcon } from '@contentful/f36-icons';
import { Flex } from '@contentful/f36-components';
import tokens from '@contentful/f36-tokens';

export default function IconColorsExample() {
return (
<Flex flexDirection="column">
<CalendarBlankIcon variant={tokens.gray900} />

<CalendarBlankIcon color={tokens.blue500} />

<div style={{ backgroundColor: '#8091a5' }}>
<CalendarBlankIcon color={tokens.colorWhite} />
</div>
</Flex>
);
}
14 changes: 4 additions & 10 deletions packages/components/icon/examples/IconSizesExample.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
import * as React from 'react';
import { CalendarIcon } from '@contentful/f36-icons';
import { CalendarBlankIcon } from '@contentful/f36-icons';
import { Stack, Flex, Text } from '@contentful/f36-components';

export default function IconSizesExample() {
return (
<Stack>
<Flex alignItems="center">
<CalendarIcon size="tiny" /> <Text>Tiny</Text>
<CalendarBlankIcon size="tiny" /> <Text>Tiny</Text>
</Flex>
<Flex alignItems="center">
<CalendarIcon size="small" /> <Text>Small</Text>
<CalendarBlankIcon size="small" /> <Text>Small</Text>
</Flex>
<Flex alignItems="center">
<CalendarIcon size="medium" /> <Text>Medium</Text>
</Flex>
<Flex alignItems="center">
<CalendarIcon size="large" /> <Text>Large</Text>
</Flex>
<Flex alignItems="center">
<CalendarIcon size="xlarge" /> <Text>Extra large</Text>
<CalendarBlankIcon size="medium" /> <Text>Medium</Text>
</Flex>
</Stack>
);
Expand Down
56 changes: 0 additions & 56 deletions packages/components/icon/examples/IconVariantsExample.tsx

This file was deleted.

0 comments on commit 4cf7dc4

Please sign in to comment.