MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / Button

Function Button

examples/next-rsc-dynamic/components/Button.tsx:4–11  ·  view source on GitHub ↗
({ title })

Source from the content-addressed store, hash-verified

2import React from 'react'
3
4export const Button: FC<{ title: string }> = ({ title }) => (
5 <div
6 style={{ padding: 10, backgroundColor: '#333', color: '#fff', display: 'inline-block', borderRadius: 4 }}
7 onClick={() => alert('Hi')}
8 >
9 {title}
10 </div>
11)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…