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
ButtonCustom is a reusable button component that provides a consistent styled button with customizable properties. It uses Tailwind CSS for styling and supports custom classes, disabled states, and click handlers.Import
Props
HTML button type attribute (e.g., “button”, “submit”, “reset”)
Content to render inside the button. Falls back to
props.text if providedClick handler function to execute when button is clicked
Additional properties object containing:
disabled(boolean): Disables the buttontext(string): Button text content (overrides children if provided)class(string): Additional CSS classes to apply to the button
Default Styling
The component applies the following Tailwind classes by default:py-2.5- Vertical paddingpx-4- Horizontal paddingfont-semibold- Semi-bold font weightAeromaticsRegular- Custom font familyrounded-xl- Extra large border radiusshadow-md- Medium shadow
Usage Examples
Basic Button
Button with Custom Text Prop
Disabled Button
Button with Custom Classes
Form Submit Button
Source Location
/src/components/ButtonCustom/index.jsx
Notes
- The component uses optional chaining (
?.) to safely access nested properties - Custom classes can be added via
props.classto extend or override default styling - The button content prioritizes
props.textoverchildrenif both are provided - Uses the AeromaticsRegular custom font - ensure this font is loaded in your project

