UNPKG

norma-library

Version:

Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.

18 lines 690 B
import { __assign, __rest } from "tslib"; import React from 'react'; import { Button as MuiButton } from '@mui/material'; import { styled } from '@mui/material/styles'; var ButtonStyled = styled(MuiButton)({ textTransform: 'none', '& .MuiButton-sizeLarge': { height: '75px', backgroundColor: 'red', }, }); export var Button = function (_a) { var label = _a.label, children = _a.children, props = __rest(_a, ["label", "children"]); return (React.createElement(ButtonStyled, __assign({}, props, { sx: { color: props.variant === 'contained' ? '#FFFF' : props.color, } }), label ? label : children)); }; //# sourceMappingURL=Button.js.map