Create container as other component

    0

    4

    Chakra snippets

    The following code defines a container that has a maximum width of "container.lg". This means that the container will be at least as wide as the value specified.

    Library: @chakra-ui/react

    import { Container } from "@chakra-ui/react";
    
    <Container as={domElementOrClass} maxW="container.lg">
      
    </Container>
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.