MynaUI
No results found.
Theme
Toggle Theme (Dark)
Documentation
Getting Started
Design System
Changelog
FAQ
Legal
Icons
Elements
Accordion
Alert Dialog
Alert
Avatar Groups
Avatar
Badge
Breadcrumb
Button Groups
Button
Calendar
Combobox
Command
Context Menu
Data Table
Dialog
Drawer
Dropdown Menu
Menubar
Pagination
Popover
Progress
Rating
Sheet
Skeleton
Spinner
Table
Tabs
Toast
Toggle and Toggle Group
Tooltip
Forms
Checkbox
Date Picker
Input OTP
Input
Radio
Select
Slider
Switch
Textarea
Marketing
404
Banners
Blog List
Blog Post
Call to Action
Cookies
FAQ
Features
Footer
Header
Hero
Newsletters
Statistics
Testimonial Logos
Application
App Headers
App Sheets
Application Dialogs
Card Headers
Cards
Containers
Dividers
Empty States
Forgot Password
Login
Notifications
Registration
Section Headers
Documentation
  • Getting Started
  • Copybook New
  • Design System
  • Icons Updated
  • Changelog
  • Legal
  • Figma
  • Request Components
  • Request Icons
Elements
  • Accordion
  • Alert Dialog
  • Alert
  • Avatar Groups
  • Avatar
  • Badge
  • Breadcrumb
  • Button Groups
  • Button
  • Calendar
  • Combobox
  • Command
  • Context Menu
  • Data Table
  • Dialog
  • Drawer
  • Dropdown Menu
  • Menubar
  • Pagination
  • Popover
  • Progress
  • Rating
  • Sheet
  • Skeleton
  • Spinner
  • Table
  • Tabs
  • Toast
  • Toggle and Toggle Group
  • Tooltip
Forms
  • Checkbox
  • Date Picker
  • Input OTP
  • Input
  • Radio
  • Select
  • Slider
  • Switch
  • Textarea
Marketing
  • 404
  • Banners
  • Blog List
  • Blog Post
  • Call to Action
  • Cookies
  • FAQ
  • Features
  • Footer
  • Header
  • Hero
  • Newsletters
  • Statistics
  • Testimonial Logos
Application
  • App Headers
  • App Sheets
  • Application Dialogs
  • Card Headers
  • Cards
  • Containers
  • Dividers
  • Empty States
  • Forgot Password
  • Login
  • Notifications
  • Registration
  • Section Headers
Newsletter

Get the latest news and updates from MynaUI

Subscribe for Updates

Containers

Containers are used to wrap content and limit its width.

export default function SimpleContainerWithPadding() {
  return (
    <section className="mx-auto w-full max-w-7xl px-4">
      <div className="h-52 border-4 border-dotted bg-primary-foreground" />
    </section>
  );
}
export default function MultipleColumns() {
  return (
    <>
      <section className="mx-auto grid w-full max-w-7xl grid-cols-1 gap-4 px-4 md:grid-cols-2">
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
      </section>
      <section className="mx-auto grid w-full max-w-7xl grid-cols-1 gap-4 px-4 md:grid-cols-4">
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
        <div className="h-52 border-4 border-dotted bg-primary-foreground md:col-span-3" />
      </section>
      <section className="mx-auto grid w-full max-w-7xl grid-cols-1 gap-4 px-4 md:grid-cols-4">
        <div className="h-52 border-4 border-dotted bg-primary-foreground md:col-span-3" />
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
      </section>
      <section className="mx-auto grid w-full max-w-7xl grid-cols-1 gap-4 px-4 md:grid-cols-3">
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
      </section>
      <section className="mx-auto grid w-full max-w-7xl grid-cols-1 gap-4 px-4 md:grid-cols-4">
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
      </section>
      <section className="mx-auto grid w-full max-w-7xl grid-cols-1 gap-4 px-4 md:grid-cols-8">
        <div className="h-52 border-4 border-dotted bg-primary-foreground md:col-span-2" />
        <div className="h-52 border-4 border-dotted bg-primary-foreground md:col-span-4" />
        <div className="h-52 border-4 border-dotted bg-primary-foreground md:col-span-2" />
      </section>
    </>
  );
}
export default function SmallerContainerWithPadding() {
  return (
    <section className="mx-auto w-full max-w-3xl px-4">
      <div className="h-52 border-4 border-dotted bg-primary-foreground" />
    </section>
  );
}
export default function BreakpointContainerWithPadding() {
  return (
    <section className="max-w-7xl mx-auto w-full px-4">
      <div className="h-52 border-4 border-dotted bg-primary-foreground" />
    </section>
  );
}
export default function FullContainerNoMobilePadding() {
  return (
    <section className="mx-auto w-full max-w-7xl sm:px-4">
      <div className="h-52 border-4 border-dotted bg-primary-foreground" />
    </section>
  );
}
export default function SmallContainerWithBackground() {
  return (
    <section className="bg-primary-foreground md:px-4">
      <div className="mx-auto max-w-3xl bg-background p-4">
        <div className="h-52 border-4 border-dotted bg-primary-foreground" />
      </div>
    </section>
  );
}

Not affiliated with Figma, TailwindCSS or shadcn/ui.