MCPcopy Create free account
hub / github.com/Free-APIs/Free-APIs.github.io / Button

Function Button

src/components/Button/index.js:3–23  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

1import { Link } from 'react-router-dom';
2
3function Button(props) {
4 return (
5 <Link
6 to={props.to}
7 className='w-72 h-auto m-4 shadow-lg hover:shadow-xl group
8 rounded-lg focus:outline-none focus:ring sm:w-96'
9 >
10 <img
11 src={props.src}
12 alt={props.alt}
13 className={'w-full h-72 rounded-t-lg p-6 ' + props.color}
14 />
15 <div
16 className='bg-gray-200 group-hover:bg-gray-100 rounded-b-lg
17 text-gray-800 text-center p-4 text-base md:text-lg w-full bg-'
18 >
19 {props.children}
20 </div>
21 </Link>
22 );
23}
24
25export default Button;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected