Create container as other component



    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">
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • 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.