Skip to content

Commit

Permalink
Update types to accept arrays in sx prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Avila committed Feb 22, 2020
1 parent 3e45ba3 commit e875794
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { SystemStyleObject } from '@theme-ui/css'

/**
* The `sx` prop accepts a `SxStyleProp` object and properties that are part of
* the `Theme` will be transformed to their corresponding values. Other valid
* CSS properties are also allowed.
* The `sx` prop accepts a `SxStyleProp` object or an array of `SxStyleProp`
* objects and properties that are part of the `Theme` will be transformed to
* their corresponding values. Other valid CSS properties are also allowed.
*/
export type SxStyleProp = SystemStyleObject
export type SxStyleProp = SystemStyleObject | SystemStyleObject[]

export interface SxProps {
/**
Expand Down

0 comments on commit e875794

Please sign in to comment.