@streamscloud/kit 0.95.2 → 0.95.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,6 +14,8 @@ type Props = {
|
|
|
14
14
|
panel?: boolean;
|
|
15
15
|
/** Keep open on any click inside the content. */
|
|
16
16
|
keepOpen?: boolean;
|
|
17
|
+
/** Make the trigger fill its parent's box (`width: 100%; height: 100%`) — e.g. a submenu row spanning the menu width. */
|
|
18
|
+
fillContainer?: boolean;
|
|
17
19
|
on?: {
|
|
18
20
|
opened?: () => void;
|
|
19
21
|
closed?: () => void;
|
|
@@ -29,6 +29,7 @@ type Props = {
|
|
|
29
29
|
* A snippet is the content of the trigger `<button>`, so non-interactive only — `Button type="presentational"` for a button look.
|
|
30
30
|
* `{ custom }` replaces the button with the consumer's own control: its clicks toggle the popover, and its `id`, `disabled`, `aria-expanded`
|
|
31
31
|
* and `aria-haspopup` are the consumer's (`on.opened` / `on.closed` report the state). `id`, `tabbable` and the aria props here are not applied to it.
|
|
32
|
+
* The control stretches to the trigger's box, so with `fillContainer` or `--sc-kit--popover--width` it fills that width.
|
|
32
33
|
* @default chevron-down icon
|
|
33
34
|
*/
|
|
34
35
|
trigger?: Snippet | {
|