Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add box.js #348

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add box.js #348

wants to merge 3 commits into from

Conversation

viankakrisna
Copy link

@viankakrisna viankakrisna commented Dec 23, 2017

This way people with no access to modifying babel settings can use

import Box from 'glamor/box';

const Heading = props =>
    <Box component="h2" css={{fontSize: 12, ...props.css}}>
        Hello World
    </Box>

out of the box.

This way people with no access to modifying babel settings can use ```js <Box component="h2" css={{fontSize: 12}}>Hello World</Box>``` out of the box.
@jeroenransijn
Copy link

Consider this package if you need this functionality: https://github.com/segmentio/ui-box

@viankakrisna
Copy link
Author

thanks! but i want it in glamor so i can use it without installing another dependency / building it myself :)

@jeroenransijn
Copy link

Would this work with ref? You might need to add support for innerRef.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants