Skip to content

Box Component #770

@matheuslanduci

Description

@matheuslanduci

Feature request 🚀

  • I will create Pull Request
  • It's just a suggestion

Expected

  • Hey! So, what about a Box component? Just a basic div with no style, basic style properties like padding, width and a as prop to transform the tag from div to another HTML tag (e.g. form) and support its properties.

Examples

import { Box } from '@geist-ui/core'
 
function Page() {
  return (
    <Box as="form" py={4} onSubmit={...} action={...}> 
      ... 
    </Box>
  )
}

Programme (Optional)

Others (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions