Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CspmIT/mas-agua-front/llms.txt
Use this file to discover all available pages before exploring further.
Overview
CardCustom is a wrapper component built on Material-UI’s Box component that provides a consistent card container with shadow styling and dark mode support. It’s designed to be used as a container for content sections throughout the application.Import
Material-UI Integration
This component wraps Material-UI’sBox component and inherits all of its properties and behaviors.
Props
The content to be rendered inside the card container
Additional CSS classes to apply to the card. These classes are appended to the default styling
Default Styling
The component applies the following classes by default:bg-white- White background in light modedark:bg-zinc-700- Zinc-700 background in dark modeshadow-[2px_3px_5px_0px_#0000001f]- Custom shadow (2px horizontal, 3px vertical, 5px blur, 0px spread, with 12% opacity black)
Usage Examples
Basic Card
Card with Custom Padding
Card with Border Radius
Nested Cards Layout
Card as Form Container
Card with Custom Background
Dark Mode Support
The component automatically adapts to dark mode using Tailwind’s dark mode classes:- Light mode: White background (
bg-white) - Dark mode: Zinc-700 background (
dark:bg-zinc-700)
Source Location
/src/components/CardCustom/index.jsx
Notes
- Built on Material-UI’s Box component, inheriting its flexibility and props
- Uses Tailwind CSS for styling with dark mode support
- Custom shadow value provides subtle depth to cards
- Additional classes can be passed to extend or override default styling
- The
??nullish coalescing operator ensures empty string if className is null/undefined

