.finally(React)

English
Copyright © 2023-currentdotfinally, LLC

Check

Please

The Check component can be used by importing { Check } from "finallyreact"

This component also has a Toggle version; simply set the toggle prop to true.

Example

Check: Example

Size

Check: Size

Color

Use any FinallyReact color or valid hex value

Check: Color

Fill

Check: Fill

Toggle

Check: Toggle

Multi Check

only
only
[
  {
    "key": "first",
    "label": "First",
    "className": "mb-1/2",
    "defaultChecked": true,
    "showOnlySelect": true,
    "onlySelectText": "only"
  },
  {
    "key": "second",
    "label": "Second",
    "className": "mb-1/2",
    "showOnlySelect": true,
    "onlySelectText": "only"
  },
  {
    "key": "disabled",
    "label": "Disabled",
    "disabled": true,
    "showOnlySelect": false
  }
]
Check: Multi Check

Disabled

Check: Disabled

Simple

Check: Simple

Check Props

Prop NameProp TypeDescription
checkColorstringColor of Check icon
checkedbooleanChecked state of Check
colorstringAny FinallyReact color or hex value
defaultCheckedbooleanDefault checked state of Check
disabledbooleanRead only input
fillbooleanFill Check box with the specified color
inputPropsHTMLAttributesProps for Check input (the check box)
labelstringLabel for Check
labelPropsHTMLAttributesProps for the label next to the Check
namestringOptional identifier for Check
optionsobjectAn array of checkbox items, each item has the same props as a single checkbox
options[].checked
booleanChecked boolean for check item
options[].key
stringKey for check item
options[].label
stringLabel for check item
options[].onlySelectProps
objectAdditional props for the 'only' select
options[].onlySelectText
stringText label for the 'only' select
options[].showOnlySelect
booleanShow an 'only' text that selects this item and unselects others
simplebooleanNo fancy styles, but keep functionality
size'sm' | 'md' | 'lg'Size of Check
togglebooleanToggle version of Check
togglePropsHTMLAttributesProps for Toggle version of Check