SUI-Components / sui-components

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

feat: BehaviorSticky sharing isSticky state #2745

Closed aarronte86 closed 4 months ago

aarronte86 commented 4 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 4 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