MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / Button

Function Button

packages/email/src/components/button.tsx:5–25  ·  view source on GitHub ↗
({
  href,
  children,
  style,
}: { href: string; children: React.ReactNode; style?: React.CSSProperties })

Source from the content-addressed store, hash-verified

3import React from 'react';
4
5export function Button({
6 href,
7 children,
8 style,
9}: { href: string; children: React.ReactNode; style?: React.CSSProperties }) {
10 return (
11 <EmailButton
12 href={href}
13 style={{
14 backgroundColor: '#000',
15 borderRadius: '6px',
16 color: '#fff',
17 padding: '12px 20px',
18 textDecoration: 'none',
19 ...style,
20 }}
21 >
22 {children}
23 </EmailButton>
24 );
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected