MCPcopy Create free account
hub / github.com/AlariCode/top-app-demo / Button

Function Button

components/Button/Button.tsx:7–25  ·  view source on GitHub ↗
({ appearance, arrow = 'none', children, className, ...props }: ButtonProps)

Source from the content-addressed store, hash-verified

5import { motion } from 'framer-motion';
6
7export const Button = ({ appearance, arrow = 'none', children, className, ...props }: ButtonProps): JSX.Element => {
8 return (
9 <motion.button
10 whileHover={{ scale: 1.05 }}
11 className={cn(styles.button, className, {
12 [styles.primary]: appearance == 'primary',
13 [styles.ghost]: appearance == 'ghost',
14 })}
15 {...props}
16 >
17 {children}
18 {arrow != 'none' && <span className={cn(styles.arrow, {
19 [styles.down]: arrow == 'down'
20 })}>
21 <ArrowIcon />
22 </span>}
23 </motion.button>
24 );
25};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected