You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace the 'type' prop with 'textAlign' on ParagraphElementProps
to align with the underlying s-paragraph web component change.
- Add textAlign prop ('start' | 'end' | 'center' | 'auto')
- Remove type prop ('paragraph' | 'small')
- Add @publicdocs annotations
- Improve JSDoc for BaseElementProps and BaseElementPropsWithChildren
* A unique identifier for this element within its parent. This is used by the rendering engine for efficient reconciliation when lists change.
19
+
*/
17
20
key?: preact.Key;
21
+
/**
22
+
* A reference to the underlying DOM element, typically created using `useRef()`. This allows you to access and manipulate the DOM element directly in your component logic.
23
+
*/
18
24
ref?: preact.Ref<TClass>;
25
+
/**
26
+
* Assigns the element to a named slot in a parent component that uses slot-based composition patterns.
27
+
*/
19
28
slot?: Lowercase<string>;
20
29
}
21
30
/**
22
-
* Used when an element has children.
31
+
* The base properties for elements that have children, extending `BaseElementProps` with children support.
* - `paragraph`: A semantic type that indicates the text is a structural grouping of related content.
39
-
* - `small`: A semantic type that indicates the text is considered less important than the main content, but is still necessary for the reader to understand.
0 commit comments