SUI-Components / sui-components

SUI Components
https://sui-components.vercel.app/
MIT License
140 stars 59 forks source link

feat: BehaviorSticky sharing isSticky state #2745

Closed aarronte86 closed 3 months ago

aarronte86 commented 3 months ago

BehaviorSticky

๐Ÿ” Show

TASK: PI-70051

Description, Motivation and Context

This feature adds the capability of sharing the isSticky current state, providing a high degree of flexibility. It is particularly useful when we need to render different variants of the component given to BehaviorSticky as children, depending on whether the current position is sticky or not.

Types of changes

github-actions[bot] commented 3 months ago
STATEMENTS BRANCHES FUNCTIONS LINES
โ‰ โ‰ 0.01โ†‘ โ‰ 0.03โ†‘ โ‰ 0.04โ†‘ โ‰ 0.04โ†‘
% 75.98 64.4 65.99 77.74
ABS 3341 / 4397 2046 / 3177 654 / 991 3162 / 4067