@wordpress/components
Version:
UI components for WordPress.
26 lines • 662 B
TypeScript
import type { RefAttributes } from 'react';
/**
* Internal dependencies
*/
import type { WordPressComponent } from '../ui/context/wordpress-component';
import type { ViewProps } from './types';
/**
* `View` is a core component that renders everything in the library.
* It is the principle component in the entire library.
*
* @example
* ```jsx
* import { View } from `@wordpress/components`;
*
* function Example() {
* return (
* <View>
* Code is Poetry
* </View>
* );
* }
* ```
*/
export declare const View: WordPressComponent<'div', ViewProps & RefAttributes<any>, true>;
export default View;
//# sourceMappingURL=component.d.ts.map