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

@forter/radio-button

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forter/radio-button

Radio Button and Group from Forter Components

  • 2.1.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
decreased by-31.43%
Maintainers
3
Weekly downloads
 
Created
Source

fc-radio-button

Properties

PropertyAttributeTypeDescription
checkedcheckedbooleanIf the element is disabled
disableddisabledbooleanWhether the element is disabled
inputIdstring
labellabelstringThe element's label
labelIdstring
namenamestringThe input's name
valuevaluestringThe input's value

Events

Event
item-selected

CSS Custom Properties

PropertyDescription
--fc-radio-border-colordefault: var(--gray-8)
--fc-radio-checked-colordefault: var(--ftr-cyan)
--fc-radio-disabled-border-colordefault: rgba(0, 0, 0, 0.25)
--fc-radio-disabled-text-colordefault: var(--gray-3)
--fc-radio-hover-colordefault: var(--gray-0)
--fc-radio-text-colordefault: black

Slots

NameDescription
inputinternally used to render light children. Do not use.
labelinternally used to render light children. Do not use.

fc-radio-group

##Usage

Default

<fc-radio-group>
     <fc-radio-button label="Pizza" value="pizza"></fc-radio-button>
     <fc-radio-button label="Hamburger" value="hamburger"></fc-radio-button>
</fc-radio-group>

Preselected

<fc-radio-group>
     <fc-radio-button checked label="Pizza" value="pizza"></fc-radio-button>
     <fc-radio-button label="Hamburger" value="hamburger"></fc-radio-button>
</fc-radio-group>

Disabled

<fc-radio-group>
     <fc-radio-button disabled label="Pizza" value="pizza"></fc-radio-button>
     <fc-radio-button label="Hamburger" value="hamburger"></fc-radio-button>
</fc-radio-group>

Disable All

<fc-radio-group disabled>
     <fc-radio-button label="Pizza" value="pizza"></fc-radio-button>
     <fc-radio-button label="Hamburger" value="hamburger"></fc-radio-button>
</fc-radio-group>

Properties

PropertyAttributeTypeDefaultDescription
attributeForSelectedstring"checked"
legendlegendstringThe legend for the fieldset

CSS Custom Properties

PropertyDescription
--fc-radio-group-legend-colordefault: var(--ftr-red)

Slots

NameDescription
internally used for light input. Do not use.

Keywords

FAQs

Package last updated on 19 Sep 2019

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