-
Notifications
You must be signed in to change notification settings - Fork 429
/
Copy pathbadge.d.ts
39 lines (34 loc) · 882 Bytes
/
badge.d.ts
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
declare module '@salesforce/design-system-react/components/badge' {
import React from 'react';
type Props = {
/**
* CSS classes that are applied to the component
*/
className?: any[] | Record<string, any> | string;
/**
* Id of component, if desired. If not provided an id is automatically generated
*/
id?: string;
/**
* Custom styles to be passed to the component
*/
style?: Record<string, any>;
/**
* Color variant for the badge component
*/
color?: 'default' | 'inverse' | 'light';
/**
* Icon alignment for the badge component
*/
iconAlignment?: 'left' | 'right';
/**
* Content to be placed inside the badge component
*/
content?: string | React.ReactNode;
};
/**
* Badges are labels which hold small amounts of information.
*/
function Component(props: Props): JSX.Element;
export default Component;
}