1.4.0 • Published 2 years ago

@forter/rate v1.4.0

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

fc-rate

An element to give score to between 1 to 5 to something ;)

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

Usage

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

<fc-rate></fc-rate>

Examples

<!-- intent -->
<fc-rate value="5"></fc-rate>

Properties

PropertyAttributeTypeDefaultDescription
disableddisabled"" \| "disabled "
intentintent"primary" \| "secondary" \| "success" \| "apply" \| "danger" \| "warn"The button's intent. See Intents in README.
valuevalue"1" \| "2" \| "3" \| "4" \| "5"""Rate value

Events

EventDescription
changewhen choosing another value. method: change, example: { "value": 1}

CSS Custom Properties

PropertyDescription
--fc-rate-checked-colorchecked color. default: var(--fc-yellow-500) example: var(--fc-green-500)
--fc-rate-colorcolor default: var(--fc-gray-500) example: var(--fc-gray-900)
--fc-rate-cursorcursor. example: search ,default: pointer
--fc-rate-disabled-colordisabled color. default: var(--fc-gray-200) example: var(--fc-purple-200)
--fc-rate-item-sizesize of item. default: 18px example: 25px
--fc-rate-marginpadding. default: 0 1.05em
1.4.0

2 years ago

1.3.7

3 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.11

4 years ago

1.2.10

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago