How to use the @workday/canvas-kit-react-common.expandHex function in @workday/canvas-kit-react-common

To help you get started, we’ve selected a few @workday/canvas-kit-react-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Workday / canvas-kit / modules / color-picker / react / lib / ColorInput.tsx View on Github external
private handleChange = (e: React.ChangeEvent): void => {
    const value = this.formatValue(e.currentTarget.value);

    if (this.props.onChange) {

    if (this.isValidHex(value) && this.props.onValidColorChange) {