-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathProvider.d.ts
28 lines (25 loc) · 1.02 KB
/
Provider.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
import {
Component,
ReactNode
} from 'react'
import {
SimpleBaseProps
} from './Base'
type IconStrategy = "auto" | "ligature" | "className" | "url" | "component" | "custom";
export interface RMWCProviderProps extends SimpleBaseProps<RMWCProvider> {
/** Set the buttons ripple effect globally */
buttonDefaultRipple?: boolean,
/** Set the listItems ripple effect globally */
listItemDefaultRipple?: boolean,
/** Set the iconClassNameBase. Read the icon docs for more info. */
iconClassNameBase?: string,
/** Set the iconClassNamePrefix. Read the icon docs for more info. */
iconClassNamePrefix?: string,
/** Set the default iconStrategy. Read the icon docs for more info. */
iconStrategy?: IconStrategy,
/** Sets a default render function to be used when the iconStrategy is custom */
iconRender?: (props: { content: ReactNode, className: string }) => any,
/** Children to render */
children?: ReactNode
}
export class RMWCProvider extends Component<RMWCProviderProps> { }