This repository has been archived on 2025-11-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Fitz_Studio/frontend/src/components/botoncito.tsx
T
egutierrez 27f71a05f3 feat: Add Consulta_API page and routing, implement API request functionality
- Introduced a new page for API consultation (`Consulta_API`) with a form to send requests.
- Added routing for the new page and a 404 error page.
- Created a `MetodoSelect` component for selecting HTTP methods.
- Implemented a `MiBoton` component for a customizable button.
- Updated the `HomePage` layout to include a sidebar (`DoubleNavbar`) and main content area.
- Enhanced the `Welcome` component with a new greeting and description.
- Added a holographic shader background to the 404 error page.
- Updated dependencies in `yarn.lock` for new components and features.
- Styled the sidebar and main content for better user experience.
2025-05-06 00:12:54 +02:00

17 lines
407 B
TypeScript

// src/components/MiBoton.tsx
import { Button } from '@mantine/core';
import { MouseEventHandler } from 'react';
type MiBotonProps = {
onClick: MouseEventHandler<HTMLButtonElement>;
label?: string;
color?: string;
};
function MiBoton({ onClick, label = 'Hola que tal!', color = 'teal' }: MiBotonProps) {
return <Button color={color} onClick={onClick}>{label}</Button>;
}
export default MiBoton;