UNPKG

@wix/design-system

Version:

@wix/design-system

63 lines (60 loc) 2.19 kB
### dataHook - type: string - description: Applies a data-hook HTML attribute that can be used in tests. ### className - type: string - description: Specifies a CSS class name to be appended to the component’s root element. - internal ### checked - type: boolean - description: Specifies whether a radio is selected. ### disabled - type: boolean - description: Specifies whether radio should be disabled. ### label - type: ReactNode - description: Sets the label on the right side of a radio. The default accepted value is a text string, but it can be overridden to any other component. ### id - type: string - description: Assigns an unique identifier for the radio. ### value - type: string | number - description: Sets the value that the radio represents. ### name - type: string - description: Sets a unique name for the radio. ### onChange - type: (event: OnChangeEvent) => void - description: Defines a callback function which is called when radio is selected. ### onMouseEnter - type: (event: OnChangeEvent) => void - description: Defines a callback function which is called when cursor enters radio. ### onMouseLeave - type: (event: OnChangeEvent) => void - description: Defines a callback function which is called when cursor leaves radio. ### alignItems - type: "center" | "top" - description: Control radio alignment with a label. ### size - type: "small" | "medium" - description: Control size. ### style - type: CSSProperties - description: No description ### focusableOnFocus - type: FocusEventHandler - description: No description ### focusableOnBlur - type: FocusEventHandler - description: No description ### ref - type: string & RefObject<HTMLElement> | ((instance: HTMLInputElement | null) => void) & RefObject<HTMLElement> | RefObject<HTMLInputElement> & RefObject<HTMLElement> - description: Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). ### onFocus - type: (event: FocusEvent, triggers: Triggers) => void - description: No description ### onBlur - type: (event: FocusEvent, triggers: Triggers) => void - description: No description