How to use the sku/treat.useClassNames function in sku

To help you get started, we’ve selected a few sku 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 seek-oss / braid-design-system / lib / components / Reset / Reset.tsx View on Github external
export const Reset = ({
  component = 'div',
  className = '',
  ...restProps
}: ResetProps) => {
  const theme = useTheme();
  const resetClass = isResetTag(theme.atoms.reset, component)
    ? theme.atoms.reset[component]
    : '';

  return React.createElement(component, {
    className: useClassNames(className, resetClass),
    ...restProps,
  });
};

sku

Front-end development toolkit, powered by Webpack, Babel, Vanilla Extract and Jest

MIT
Latest version published 1 month ago

Package Health Score

78 / 100
Full package analysis