View

is a core component that renders everything in the library. It is the principle component in the entire library.

Everything is a , and a is everything.

Usage

example.js
Into The Unknown

Props

___css

Type: InterpolatedCSS

Render custom CSS using the style system. The cx prop combines custom styling with the css prop. Typically used "internally" to establish based styles for a .

as

Type: string,E

Render the component as another React Component or HTML Element.

css

Type: InterpolatedCSS

Render custom CSS using the style system.

cx

Type: any

Combines classNames as well as CSS style rules created with the css function.

Styling

Presets

The Style system provides a bunch of style presets, which come from @wp-g2/styles. These presets are namespaced under ui.

Presets can style a by passing an Array of them into the css prop.

example.js
Into The Unknown
© 2020. G2 Components.