UNPKG

@wordpress/components

Version:
30 lines • 941 B
import type { SurfaceProps } from './types'; /** * `Surface` is a core component that renders a primary background color. * * This component is deprecated. Write your own CSS instead, * preferably using the [design tokens](https://wordpress.github.io/gutenberg/?path=/docs/design-system-tokens-introduction--docs) * available in `@wordpress/theme`. * * @deprecated * * In the example below, notice how the `Surface` renders in white (or dark gray if in dark mode). * * ```jsx * import { * __experimentalSurface as Surface, * __experimentalText as Text, * } from '@wordpress/components'; * * function Example() { * return ( * <Surface> * <Text>Code is Poetry</Text> * </Surface> * ); * } * ``` */ export declare const Surface: import("../context").WordPressComponent<"div", SurfaceProps & Pick<import("react").RefAttributes<any>, "ref">, true>; export default Surface; //# sourceMappingURL=component.d.ts.map