@@ -50,27 +50,129 @@ type OverflowValues = "visible" | "hidden" | "clip" | "scroll" | "auto";
5050type Overflow = OverflowValues | { x ?: OverflowValues ; y ?: OverflowValues } ;
5151
5252type Props = {
53+ /**
54+ * Based on the CSS property background allows configuring all properties related to the background of a container.
55+ *
56+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/background
57+ */
58+ background ?: Background ;
59+ /**
60+ * Based on the CSS property border allows configuring all properties related to the border of a container.
61+ */
62+ border ?: Border ;
63+ /**
64+ * Sets the border-radius CSS property.
65+ *
66+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
67+ */
68+ borderRadius ?: string ;
69+ /**
70+ * Sets the box-shadow CSS property.
71+ *
72+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
73+ */
74+ boxShadow ?: string ;
75+ /**
76+ * Sets the box-sizing CSS property.
77+ *
78+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing
79+ */
5380 boxSizing ?: "border-box" | "content-box" ;
81+ /**
82+ * Custom content inside the container.
83+ */
84+ children : React . ReactNode ;
85+ /**
86+ * Sets the display CSS property.
87+ * The set of values is limited to the ones related to the outer display type.
88+ * If you want to apply any pattern from the inner box and how the children are laid out,
89+ * we recommend you to use the Flex and Grid components.
90+ *
91+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/display
92+ */
5493 display ?: "block" | "inline-block" | "inline" | "none" ;
55- width ?: string ;
94+ /**
95+ * Sets the float CSS property.
96+ *
97+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/float
98+ */
99+ float ?: "left" | "right" | "none" ;
100+ /**
101+ * Sets the height CSS property.
102+ *
103+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/height
104+ */
56105 height ?: string ;
106+ /**
107+ * Based on the CSS property inset this prop is a shorthand that corresponds
108+ * to the top, right, bottom, and/or left properties.
109+ */
110+ inset ?: Inset ;
111+ /**
112+ * Size of the margin to be applied to the component.
113+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties
114+ * in order to specify different margin sizes.
115+ */
116+ margin ?: Space ;
117+ /**
118+ * Sets the max-height CSS property.
119+ *
120+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/max-height
121+ */
57122 maxWidth ?: string ;
123+ /**
124+ * Sets the max-width CSS property.
125+ *
126+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/max-width
127+ */
58128 maxHeight ?: string ;
129+ /**
130+ * Sets the min-height CSS property.
131+ *
132+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/min-height
133+ */
59134 minWidth ?: string ;
135+ /**
136+ * Sets the min-width CSS property.
137+ *
138+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/min-width
139+ */
60140 minHeight ?: string ;
61- padding ?: Space ;
62- border ?: Border ;
63- borderRadius ?: string ;
64- margin ?: Space ;
141+ /**
142+ * Based on the CSS property outline allows configuring all properties related
143+ * to the outline of a container.
144+ */
145+ outline ?: Outline ;
146+ /**
147+ * Sets the overflow CSS property.
148+ *
149+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow
150+ */
65151 overflow ?: Overflow ;
152+ /**
153+ * Size of the margin to be applied to the component.
154+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties
155+ * in order to specify different margin sizes.
156+ */
157+ padding ?: Space ;
158+ /**
159+ * Sets the position CSS property.
160+ *
161+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/position
162+ */
66163 position ?: "static" | "relative" | "absolute" | "fixed" | "sticky" ;
67- inset ?: Inset ;
68- float ?: "left" | "right" | "none" ;
164+ /**
165+ * Sets the width CSS property.
166+ *
167+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/width
168+ */
169+ width ?: string ;
170+ /**
171+ * Sets the z-index CSS property.
172+ *
173+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
174+ */
69175 zIndex ?: "auto" | number ;
70- background ?: Background ;
71- boxShadow ?: string ;
72- outline ?: Outline ;
73- children : React . ReactNode ;
74176} ;
75177
76178export type StyledProps = Omit < Props , "display" | "width" | "height" | "opacity" | "overflow" > & {
0 commit comments