Skip to content

Commit

Permalink
fix(components): add width prop to List (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekaiking authored Feb 17, 2022
1 parent 1c9f3cc commit 2a61863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import { useState } from 'react'
import { Box, IconButton, Link, Text } from 'theme-ui'

export function List({ data = [] }) {
export function List({ data = [], width }) {
return (
<Box
sx={{
width: ['100%', '100%', 400],
width: width ? width : ['100%', '100%', 400],
bg: 'bg',
py: 3,
}}
Expand Down

1 comment on commit 2a61863

@vercel
Copy link

@vercel vercel bot commented on 2a61863 Feb 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.