Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "components/CheckBox/index"

Index

Interfaces

Type aliases

Variables

Functions

Type aliases

TypeProps

TypeProps: object

Type declaration

  • Optional as?: any
  • Optional checked?: boolean
  • Optional children?: ReactNode
  • Optional childrenPosition?: "start" | "end"
  • Optional gapDistance?: number | string
  • Optional name?: string
  • Optional onChange?: function
      • (checked: boolean, event: SyntheticEvent): void
      • Parameters

        • checked: boolean
        • event: SyntheticEvent

        Returns void

  • Optional value?: any

Variables

Const CheckSvg

CheckSvg: string & StyledComponentBase<"svg", any, __type, never> = styled.svg`position: relative;z-index: 1;pointer-events: none;color: var(--ab-color-inputcolor);background: var(--ab-color-defaultbackground);rect,polyline {fill: none;stroke-width: 4;}rect {stroke: currentColor;}`

Const CheckboxInput

CheckboxInput: string & StyledComponentBase<"input", any, __type, never> = styled.input`width: 0;&:focus + svg rect {stroke: var(--ab-color-inputcolor);stroke-width: 2;}&:focus + svg {outline: 2px solid var(--ab-color-focus);}&:checked + svg rect,&:checked + svg polyline {stroke: currentColor;}&:checked + svg polyline {animation: ${checked} 0.5s ease forwards;stroke-dasharray: 50;stroke-dashoffset: 50;}`

Const checked

checked: Keyframes = keyframes`100% {stroke-dashoffset: 0;}`

Functions

Const CheckBox

  • CheckBox(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • as: any
      • checked: boolean
      • children: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal
      • childrenPosition: "start" | "end"
      • gapDistance: string | number
      • name: string
      • onChange: function
          • (checked: boolean, event: SyntheticEvent): void
          • Parameters

            • checked: boolean
            • event: SyntheticEvent

            Returns void

      • props: props
      • value: any

    Returns Element

Generated using TypeDoc