UNPKG

@nordcom/nordstar-view

Version:

Display a dedicated view; (aka page) somewhere in your app.

20 lines 882 B
import { As, InternalForwardRefRenderFunction } from '@nordcom/nordstar-system'; export type ViewProps = { as?: As; outerAs?: As; withoutWrapper?: boolean; outerClassName?: string | undefined; }; /** * `<View/>`, a component to render the main content of a page. * * @param {object} props - `<View/>` props. * @param {As} [props.as] - The element to render the component as. * @param {As} [props.outerAs] - The element to render the outer part of the component as. * @param {boolean} [props.withoutWrapper] - Don't include the wrapper/outer part of the component. * @param {string | undefined} [props.outerClassName] - The class name for the outer part of the component. * @returns {ReactNode} The `<View/>` component. */ declare const View: InternalForwardRefRenderFunction<"main", ViewProps, never>; export default View; //# sourceMappingURL=view.d.ts.map