@kuma-ui/compiler
Version:
🐻 Kuma UI is a utility-first, zero-runtime CSS-in-JS library that offers an outstanding developer experience and optimized performance.
13 lines (10 loc) • 496 B
TypeScript
import { JsxOpeningElement, JsxSelfClosingElement } from 'ts-morph';
import { componentList } from '@kuma-ui/core/components/componentList';
type PropValue = any;
/**
* Extracts props from a component and returns the generated className and css.
*/
declare const extractProps: (componentName: (typeof componentList)[keyof typeof componentList], jsx: JsxOpeningElement | JsxSelfClosingElement, propsMap: Record<string, PropValue>) => {
css: string;
} | undefined;
export { extractProps };