Skip to content

Commit

Permalink
chore: add example compound variables with media variant value
Browse files Browse the repository at this point in the history
  • Loading branch information
tkow committed Dec 9, 2022
1 parent cbe1369 commit d95a9ae
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion example/src/Example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,22 @@ export default function Example() {
<Heading underlined heading="h5">
Heading
</Heading>
<Heading>Media</Heading>
<Heading
// NOTE: test compound variants with media.
// If it work text color and border color are same
// as text size will be changed by device size.
heading={{
'@xxl': 'h1',
'@xl': 'h1',
'@lg': 'h2',
'@md': 'h3',
}}
underlined={{
'@initial': true,
}}
>
Media
</Heading>
<Heading
heading={{
'@initial': 'h5',
Expand Down

0 comments on commit d95a9ae

Please sign in to comment.