feat(lib/discord): add types for FloatingActionButton

This commit is contained in:
PalmDevs 2026-07-17 21:10:29 +07:00
parent 3f60b4dfb7
commit eb3f03fb60
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA
2 changed files with 10 additions and 0 deletions

View file

@ -87,6 +87,7 @@ export interface Design {
Card: DiscordModules.Components.Card
ContextMenu: DiscordModules.Components.ContextMenu
ContextMenuItem: DiscordModules.Components.ContextMenuItem
FloatingActionButton: DiscordModules.Components.FloatingActionButton
IconButton: DiscordModules.Components.IconButton
ImageButton: DiscordModules.Components.ImageButton
LayerScope: DiscordModules.Components.LayerScope

View file

@ -306,6 +306,15 @@ export namespace DiscordModules {
export type ImageButton = FC<ImageButtonProps>
export interface FloatingActionButtonProps {
icon: number
onPress: () => void
positionBottom?: number
accessibilityLabel?: string
}
export type FloatingActionButton = FC<FloatingActionButtonProps>
export interface StackProps extends ViewProps {
spacing?: number
align?: ViewStyle['alignItems']