mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* [react] Added a "boxShadow" optional property to the "CSSProperties" interface. MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow * Added a test for CSSProperties.boxShadow
40 lines
1.7 KiB
TypeScript
40 lines
1.7 KiB
TypeScript
import * as React from 'react';
|
|
|
|
const initialStyle: React.CSSProperties = { fontWeight: 'initial' };
|
|
const initialStyleTest = <div style={initialStyle} />;
|
|
|
|
const backgroundAttachmentStyle: React.CSSProperties = { backgroundAttachment: 'fixed' };
|
|
const backgroundAttachmentStyleTest = <div style={backgroundAttachmentStyle} />;
|
|
|
|
const columnCountStyle: React.CSSProperties = { columnCount: 'auto' };
|
|
const columnCountStyleTest = <div style={columnCountStyle} />;
|
|
|
|
const fontSizeAdjustStyle: React.CSSProperties = { fontSizeAdjust: 'none' };
|
|
const fontSizeAdjustStyleTest = <div style={fontSizeAdjustStyle} />;
|
|
|
|
const fontStretchStyle: React.CSSProperties = { fontStretch: 'condensed' };
|
|
const fontStretchStyleTest = <div style={fontStretchStyle} />;
|
|
|
|
const fontStyleStyle: React.CSSProperties = { fontStyle: 'italic' };
|
|
const fontStyleStyleTest = <div style={fontStyleStyle} />;
|
|
|
|
const fontWeightStyle: React.CSSProperties = { fontWeight: 400 };
|
|
const fontWeightStyleTest = <div style={fontWeightStyle} />;
|
|
|
|
const justifyContentStyle: React.CSSProperties = { justifyContent: 'space-evenly' };
|
|
const justifyContentStyleTest = <div style={justifyContentStyle} />;
|
|
|
|
const boxShadowStyle: React.CSSProperties = { boxShadow: '2px 2px 2px 1px rgba(0, 0, 0, 0.2)' };
|
|
const boxShadowStyleTest = <div style={boxShadowStyle} />;
|
|
|
|
// SVG specific style attribute declarations
|
|
|
|
const fillOpacityStyle: React.CSSProperties = { fillOpacity: 0.3 };
|
|
const fillOpacityStyleTest = <svg style={fillOpacityStyle} />;
|
|
|
|
const strokeOpacityStyle: React.CSSProperties = { strokeOpacity: 0.3 };
|
|
const strokeOpacityStyleTest = <svg style={strokeOpacityStyle} />;
|
|
|
|
const strokeWidthStyle: React.CSSProperties = { strokeWidth: '10px' };
|
|
const strokeWidthStyleTest = <svg style={strokeWidthStyle} />;
|