6.2.0 • Published 11 months ago

@forter/checkbox v6.2.0

Weekly downloads
52
License
Apache-2.0
Repository
-
Last release
11 months 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

11 months ago

6.1.2

11 months ago

6.1.1

11 months ago

6.1.3

11 months ago

6.1.0

11 months ago

6.0.6

11 months ago

6.0.3

11 months ago

6.0.2

11 months ago

6.0.5

11 months ago

6.0.4

11 months ago

4.0.1

1 year ago

4.0.0

1 year ago

4.0.3

12 months ago

4.0.2

1 year ago

5.0.0

12 months ago

6.0.1

12 months ago

6.0.0

12 months ago

4.1.0

12 months ago

3.8.0

2 years ago

3.7.1

2 years ago

3.7.0

2 years ago

3.6.0

3 years ago

3.5.0

3 years ago

3.4.6

3 years ago

3.4.5

3 years ago

3.4.4

4 years ago

3.4.3

4 years ago

3.4.2

4 years ago

3.4.1

4 years ago

3.4.0

4 years ago

3.3.2

4 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.12

4 years ago

3.2.11

4 years ago

3.2.9

4 years ago

3.2.10

4 years ago

3.2.8

4 years ago

3.2.7

4 years ago

3.2.6

4 years ago

3.2.5

4 years ago

3.2.4

4 years ago

3.2.3

4 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.10

4 years ago

3.1.9

4 years ago

3.1.7

4 years ago

3.1.8

4 years ago

3.1.6

4 years ago

3.1.5

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.0.0

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1-beta.337

5 years ago