@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
29 lines (28 loc) • 757 B
TypeScript
import React from "react";
import { OverridableComponent } from "../util/types";
/**
* @deprecated Use Box with padding and border instead
*/
export interface PanelProps extends React.HTMLAttributes<HTMLElement> {
/**
* Panel content
*/
children: React.ReactNode;
/**
* Adds a border to panel when true
* @default false
*/
border?: boolean;
}
export type PanelType = OverridableComponent<PanelProps, HTMLElement>;
/**
* @deprecated
* Use Box with padding and border instead
* ```
* <Box padding="4" borderRadius="small" />
* <Box padding="4" borderWidth="1" borderRadius="small" />
* ```
* Component will be removed in a future major release
*/
export declare const Panel: PanelType;
export default Panel;