6.2.0 • Published 2 years ago

@forter/checkbox v6.2.0

Weekly downloads
52
License
Apache-2.0
Repository
-
Last release
2 years ago

fc-checkbox

An checkbox control which is mostly used in forms.

npm.io npm.io npm.io npm.io npm.io npm.io

Usage

<script>
  import '@forter/checkbox';
</script>

<fc-checkbox> Checkbox </fc-checkbox>

Examples

<!-- textContent -->
<fc-checkbox>
   Bar
</fc-checkbox>

Properties

PropertyAttributeTypeDefaultDescription
blockeventsblockeventsbooleanfalseWhether the element is event blocked
checkedcheckedbooleanfalseWhether the element is checked
disableddisabledbooleanfalseWhether the element is disabled
indeterminateindeterminatebooleanfalseWhether the element is indeterminate
inputIdstring
intentintent"primary" \| "secondary" \| "success" \| "danger" \| "warn"The button's intent. See Intents in README.

Events

EventDescription
changefires once value changed. example: { "target": { "checked": true } }

Slots

NameDescription
textContent for the checkbox label

CSS Custom Properties

PropertyDescription
--fc-checkbox-border-radiusborder radius. default: 8px. example: 20px
--fc-checkbox-check-colorcheck color. example: pink
--fc-checkbox-checked-colorchecked color. default: var(--fc-blue-500)
--fc-checkbox-focus-box-shadowbox shadow on focus. default: inset 0 0 0 2px rgba(0, 0, 0, 0.08). example: inset 0 0 0 3px rgba(255, 0, 0, 0.08);
--fc-checkbox-hover-colorbackground colour when hovered. default: var(--fc-primary-100)
--fc-checkbox-label-widthwidth of the label. default: auto. example: 100%
--fc-checkbox-unchecked-background-colorunchecked background color. example: pink
6.2.0

2 years ago

6.1.2

2 years ago

6.1.1

2 years ago

6.1.3

2 years ago

6.1.0

2 years ago

6.0.6

2 years ago

6.0.3

2 years ago

6.0.2

2 years ago

6.0.5

2 years ago

6.0.4

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

4.0.3

2 years ago

4.0.2

2 years ago

5.0.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

4.1.0

2 years ago

3.8.0

3 years ago

3.7.1

3 years ago

3.7.0

3 years ago

3.6.0

4 years ago

3.5.0

4 years ago

3.4.6

4 years ago

3.4.5

4 years ago

3.4.4

5 years ago

3.4.3

5 years ago

3.4.2

5 years ago

3.4.1

5 years ago

3.4.0

5 years ago

3.3.2

5 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.12

5 years ago

3.2.11

5 years ago

3.2.9

5 years ago

3.2.10

5 years ago

3.2.8

5 years ago

3.2.7

5 years ago

3.2.6

5 years ago

3.2.5

5 years ago

3.2.4

5 years ago

3.2.3

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.10

5 years ago

3.1.9

5 years ago

3.1.7

5 years ago

3.1.8

5 years ago

3.1.6

5 years ago

3.1.5

5 years ago

3.1.4

5 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.0.0

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1-beta.337

6 years ago