Socket
Socket
Sign inDemoInstall

@berlitz/button

Package Overview
Dependencies
114
Maintainers
1
Versions
179
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @berlitz/button

Button component for the Max Design System


Version published
Weekly downloads
2.8K
decreased by-3.55%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Button npm version

The Berlitz Button component has two styles available: Primary Button, Ghost White (Transparent fill). This component comes with additional options and states, such as loading, disabled, full width and an option to append icon after the label.

Installation

yarn add @berlitz/button

Props

ArgumentTypeRequiredDefaultExample
canLoadboolnull
childrenoneOfType([string, node]null
onClickfunctionnull
ghostboolnull
iconnodenull
typestring'button'
buttonTypestring'default'
fullWidthbool or arrayOf['xs', 'sm', 'md', 'lg', 'xl']null
smallbool or arrayOf['xs', 'sm', 'md', 'lg', 'xl']null

Usage

import React from 'react'
import Button from '@berlitz/button'
const MyApp = () => (
  <>
    <h1>Get Started</h1>
    <Button>Let's Go</Button>
  </>
)

When to use this component

  • Call to action Button
  • Submit Button

FAQs

Last updated on 19 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc