How to use the @microsoft/fast-web-utilities.spinalCase function in @microsoft/fast-web-utilities

To help you get started, we’ve selected a few @microsoft/fast-web-utilities 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 microsoft / fast-dna / packages / fast-tooling-react / src / css-property-editor / property-editor-row.tsx View on Github external
return (
            <div tabindex="{-1}">
                <input style="{{" value="{spinalCase(this.props.cssPropertyName)}" type="{&quot;text&quot;}">
                :
                </div>
github microsoft / fast-dna / packages / fast-tooling-react / src / css-property-editor / property-editor.utilities.ts View on Github external
(dataKey: string): void => {
            dataConfig[dataKey] = {
                value: data[dataKey],
                keyWidth:
                    typeof spinalCase(dataKey) === "string"
                        ? monospaceFontWidthMultiplier * spinalCase(dataKey).length
                        : 0,
                valueWidth:
                    typeof data[dataKey] === "string"
                        ? monospaceFontWidthMultiplier * data[dataKey].length
                        : 0,
            };
        }
    );
github microsoft / fast-dna / packages / fast-tooling-react / src / css-property-editor / property-editor.utilities.ts View on Github external
(dataKey: string): void => {
            dataConfig[dataKey] = {
                value: data[dataKey],
                keyWidth:
                    typeof spinalCase(dataKey) === "string"
                        ? monospaceFontWidthMultiplier * spinalCase(dataKey).length
                        : 0,
                valueWidth:
                    typeof data[dataKey] === "string"
                        ? monospaceFontWidthMultiplier * data[dataKey].length
                        : 0,
            };
        }
    );