aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/sandbox.tsx
blob: b574fd35cdd2e48365219557765256b03cd3ebb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import * as React from 'react';

import { MediaChoice, stylesForMedia } from '../style/media';
import { styled } from '../style/theme';

interface SandboxProps {
    width: MediaChoice;
}
export const Sandbox =
    styled.div <
    SandboxProps >
    `
    display: block;
    border: 1px solid black;
    background-color: yellow;
    ${props => stylesForMedia(props.width)}
    `;