Group Clops Feature Branch (#10360)

Co-authored-by: DS Boyce <260543580+ds-boyce@users.noreply.github.com>
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Eric Bailey
2026-04-24 13:38:50 -05:00
committed by GitHub
parent e832791367
commit cdb8d4bfb8
63 changed files with 3517 additions and 1844 deletions
+6
View File
@@ -77,6 +77,10 @@ export type ButtonState = {
focused: boolean
pressed: boolean
disabled: boolean
/**
* Alias for hovered || focused || pressed
*/
interacting: boolean
}
export type ButtonContext = VariantProps & ButtonState
@@ -120,6 +124,7 @@ const Context = createContext<VariantProps & ButtonState>({
focused: false,
pressed: false,
disabled: false,
interacting: false,
})
Context.displayName = 'ButtonContext'
@@ -536,6 +541,7 @@ export const Button = forwardRef<View, ButtonProps>(
const context = useMemo<ButtonContext>(
() => ({
...state,
interacting: state.hovered || state.focused || state.pressed,
variant,
color,
size,