Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@forter/button-group

Package Overview
Dependencies
Maintainers
3
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forter/button-group

Button Group from Forter Components

  • 1.4.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
85
increased by8400%
Maintainers
3
Weekly downloads
 
Created
Source

fc-button-group

A group of buttons

Usage

<script>
   import '@forter/button-group';
</script>

<fc-button-group>
      <button>Dog</button>
      <button>Cat</button>
      <button>Human <fc-icon icon="user" size="13"></fc-icon></button>
      <button>Fish</button>
</fc-button-group>

Examples


<!-- with 2 button buttons -->

<fc-button-group>
      <button>Dog</button>
      <button>Cat</button>
</fc-button-group>

<!-- with active and disabled buttons -->

<fc-button-group>
      <button>Dog</button>
      <button active>Cat</button>
      <button>Human <fc-icon icon="user" size="13"></fc-icon></button>
      <button disabled>Fish</button>
</fc-button-group>

<!-- single-selection -->

<fc-button-group single-selection >
      <button>Dog</button>
      <button active>Cat</button>
      <button>Human <fc-icon icon="user" size="13"></fc-icon></button>
      <button>Fish</button>
</fc-button-group>

Properties

PropertyAttributeTypeDefaultDescription
disableddisabledbooleanfalseIf the element is disabled
singleSelectionsingle-selectionbooleanfalseAllow only one option selection

Events

EventDescription
changewhen button is clicked

CSS Custom Properties

PropertyDescription
--fc-button-group-button-background-colorbutton's background-color. default: 'white'
--fc-button-group-button-background-color-color-activebutton's background-color on active. default: 'var(--blue-1)'
--fc-button-group-button-border-colorbutton's border-color. default: 'var(--gray-4)'
--fc-button-group-button-border-color-activebutton's border-color on active. default: 'var(--blue-5)'
--fc-button-group-button-border-color-hoverbutton's border-color on hover. default: 'var(--gray-7)'
--fc-button-group-button-border-radiusfirst and last button border radius. default: '25px'
--fc-button-group-button-colorfont color. default: 'var(--gray-7)'
--fc-button-group-button-font-sizebutton's font-size. default: '12px'
--fc-button-group-button-heightbutton's height. default: '30px'
--fc-button-group-button-inner-item-paddingbutton's inner left and right padding. default: '20px'

Keywords

FAQs

Package last updated on 31 Aug 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc