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.7.0
  • latest
  • 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>

<!-- disabled group and selected item -->

<fc-button-group disabled>
      <button>Dog</button>
      <button active>Cat</button>
      <button>Human</button>
      <button>Fish</button>
</fc-button-group>

<!-- all items disabled and one active -->

<fc-button-group>
      <button disabled>Dog</button>
      <button disabled active>Cat</button>
      <button disabled>Human</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
expendableexpendablebooleanfalseIf the element is expendable
getComputedStylestring | 0
onWindowResizeany
singleSelectionsingle-selectionbooleanAllow 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(--fc-blue-100)'
--fc-button-group-button-border-colorbutton's border-color. default: 'var(--fc-gray-400)'
--fc-button-group-button-border-color-activebutton's border-color on active. default: 'var(--fc-blue-500)'
--fc-button-group-button-border-color-hoverbutton's border-color on hover. default: 'var(--fc-gray-700)'
--fc-button-group-button-border-radiusfirst and last button border radius. default: '25px'
--fc-button-group-button-colorfont color. default: 'var(--fc-gray-700)'
--fc-button-group-button-color-activefont color. default: 'var(--fc-gray-700)'
--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 03 Oct 2022

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