3.0.24 • Published 4 years ago

@forter/radio-button v3.0.24

Weekly downloads
66
License
Apache-2.0
Repository
github
Last release
4 years ago

fc-radio-button

⚠️⚠️ This component is deprecated and might be unstable. please use fc-radio. ⚠️⚠️

Properties

PropertyAttributeTypeDefaultDescription
checkedcheckedbooleanfalseIf the element is disabled
disableddisabledbooleanfalseWhether the element is disabled
inputIdstring
labellabelstring""The element's label
labelIdstring
namenamestring""The input's name
valuevaluestring""The input's value

Events

Event
item-selected

Slots

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

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

fc-radio-button-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"
legendlegendstring""The legend for the fieldset

Slots

NameDescription
internally used for light input. Do not use.

CSS Custom Properties

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

4 years ago

3.0.23

4 years ago

3.0.22

4 years ago

3.0.21

4 years ago

3.0.20

4 years ago

3.0.19

4 years ago

3.0.18

4 years ago

3.0.17

4 years ago

3.0.16

4 years ago

3.0.15

4 years ago

3.0.14

4 years ago

3.0.13

4 years ago

3.0.12

4 years ago

3.0.11

4 years ago

3.0.10

4 years ago

3.0.9

4 years ago

3.0.8

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.1.6

4 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.0.0

5 years ago