Provides the TypeScript interface for a Drawer component, defining props for layout, accessibility, and localization in a React application.
// Source: https://github.com/cloudscape-design/components | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import { IconProps } from '../icon/interfaces';
import { BaseComponentProps } from '../types/base-component';
import { NonCancelableEventHandler } from '../types/events';
export interface DrawerProps extends BaseComponentProps {
/**
* Header of the drawer.
*
* It should contain the only `h2` used in the drawer.
*/
header?: React.ReactNode;
/**
* Main content of the drawer.
*/
children?: React.ReactNode;
/**
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key