Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update variants.md
Browse files Browse the repository at this point in the history
ustuncem authored Oct 9, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 21ec133 commit 318ab37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/fundamentals/variants.md
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ const theme = createTheme({

import {createVariant, createRestyleComponent, VariantProps} from '@shopify/restyle'
import {Theme} from './theme';
const variant = createVariant<Theme>({themeKey: 'cardVariants', defaults: {
const variant = createVariant<Theme, 'cardVariant'>({themeKey: 'cardVariants', defaults: {
margin: {
phone: 's',
tablet: 'm',

0 comments on commit 318ab37

Please sign in to comment.