Slide 23
Slide 23 text
4BMBSJFTͰͷ"UPNT
import { default as MuiButton, ButtonProps } from '@material-
ui/core/Button';
import { makeStyles } from '@material-ui/core/styles';
interface IButtonProps extends ButtonProps {
width?: string;
height?: string;
}
const useStyles = makeStyles({
root: {
width: ({ width }: IButtonProps) => width || '',
height: ({ height }: IButtonProps) => height || '',
}
});
export const Button = (props: IButtonProps): JSX.Element => {
const styles = useStyles(props);
const classes = {
root: styles.root
};
return (
{props.children}
);
};
❏ "UPNTͦΕҎ্ղ͞Εͯ
༻͞ΕΔ͜ͱ͕ͳ͍ίϯϙʔ
ωϯτ
❏ .6*Λϥοϓ
❏ NBLF4UZMFTΛ֦ͬͯு
❏ QSPQTͰTUZMFมߋ
❏ 6*ϥΠϒϥϦΛϥοϓ͢Δཧ༝
❏ ֦ுͰ͖Δ
❏ มߋରԠ࣌ͷӨڹൣғ