generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinterfaces.ts
More file actions
56 lines (49 loc) · 1.82 KB
/
interfaces.ts
File metadata and controls
56 lines (49 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { ReactNode } from "react";
export interface BoardItemProps {
/**
* Heading element of the item. Use the [header component](/components/header/).
*/
header?: ReactNode;
/**
* Main content of the item.
*/
children?: ReactNode;
/**
* Determines whether the main content of the item has padding. If `true`, removes the default padding
* from the content area.
*/
disableContentPaddings?: boolean;
/**
* Footer of the item.
*/
footer?: ReactNode;
/**
* Additional slot next to the heading. Use it to render an overflow actions menu in the form of a button dropdown.
*/
settings?: ReactNode;
/**
* An object containing all the necessary localized strings required by the component.
*
* ARIA labels:
* * `dragHandleAriaLabel` (string) - the ARIA label for the drag handle.
* * `dragHandleAriaDescription` (string, optional) - the ARIA description for the drag handle.
* * `resizeHandleAriaLabel` (string) - the ARIA label for the resize handle.
* * `resizeHandleAriaDescription` (string, optional) - the ARIA description for the resize handle.
* * `dragHandleTooltipText` (string, optional) - the ARIA description for the resize handle.
* * `dragHandleTooltipText` (string, optional) - the Text for the drag handle Tooltip.
* * `resizeHandleTooltipText` (string, optional) - the Text for the resize handle Tooltip.
*/
i18nStrings: BoardItemProps.I18nStrings;
}
export namespace BoardItemProps {
export interface I18nStrings {
dragHandleAriaLabel: string;
dragHandleAriaDescription?: string;
resizeHandleAriaLabel: string;
resizeHandleAriaDescription?: string;
dragHandleTooltipText?: string;
resizeHandleTooltipText?: string;
}
}