mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
Allow inline styles (#29288)
This commit is contained in:
committed by
Wesley Wigham
parent
ad6f1ec956
commit
571b816d34
Vendored
+2
@@ -33,6 +33,8 @@ declare namespace spinner {
|
||||
* for circle or folding-cube); this can either be a hex value or a color word
|
||||
*/
|
||||
color?: string;
|
||||
|
||||
style?: React.CSSProperties
|
||||
}
|
||||
|
||||
export interface Spinner extends React.ComponentClass<SpinnerProps> {
|
||||
|
||||
@@ -49,4 +49,5 @@ const spinners = [
|
||||
<Spinner name="wordpress" color="green" />,
|
||||
<Spinner name="wordpress" overrideSpinnerClassName="my-class-to-override" />,
|
||||
<Spinner name="wordpress" className="my-class" />,
|
||||
<Spinner name="wordpress" style={{ margin: '0 auto' }} />,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user