@visa/nova-react
Version:
Visa Product Design System Nova React library. Compatible with React ^19.
19 lines (18 loc) • 695 B
TypeScript
import type { ComponentPropsWithRef, ElementType } from 'react';
export type SurfaceProperties<ET extends ElementType = 'div'> = {
/** Type of Surface */
surfaceType?: 'alternate';
/** Tag of Component */
tag?: ElementType;
} & ComponentPropsWithRef<ET>;
/**
* Styles container to be used for alternate backgrounds.
* @docs {@link https://design.visa.com/base-elements/surface/?code_library=react | See Docs}
* @vgar TODO
* @wcag TODO
*/
declare const Surface: {
<ET extends ElementType = "div">({ className, surfaceType, tag: Tag, ...remainingProps }: SurfaceProperties<ET>): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
export default Surface;