JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 99
  • Score
    100M100P100Q74234F
  • License MIT

Display a button in your email (InkDes Mailer)

Package Exports

  • @inkdes-email/button

Readme

@inkdes-email/button

Button component for email.

inkdes-logo

Installation

# pnpm
pnpm add @inkdes-email/button

# npm
npm install @inkdes-email/button

# yarn
yarn add @inkdes-email/button

Quick start

import { Button } from "@inkdes-email/button";

<Button
 text='Submit'
 href='https://example.com'
 backgroundColor='#000'
 textColor='#ffff'
 borderRadius='20px'
 style={{
  paddingBottom: '20px'
 }}
/>

Props

Name Type Required Default Description
src string Yes "" Path or URL to the image
text string Yes ""
href string Yes ""
icon object No { url, alt, width, height }
backgroundColor string Yes ""
align string No "center"
direction string No "ltr"
textColor string No css color hex
borderRadius string No
outerSpacing string No "0px 0px 20px 0px"
style string No CSS style

License

MIT © iClasser