MCPcopy
hub / github.com/infinitered/ignite / ButtonProps

Interface ButtonProps

boilerplate/app/components/Button.tsx:25–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25export interface ButtonProps extends PressableProps {
26 /**
27 * Text which is looked up via i18n.
28 */
29 tx?: TextProps["tx"]
30 /**
31 * The text to display if not using `tx` or nested components.
32 */
33 text?: TextProps["text"]
34 /**
35 * Optional options to pass to i18n. Useful for interpolation
36 * as well as explicitly setting locale or translation fallbacks.
37 */
38 txOptions?: TextProps["txOptions"]
39 /**
40 * An optional style override useful for padding & margin.
41 */
42 style?: StyleProp<ViewStyle>
43 /**
44 * An optional style override for the "pressed" state.
45 */
46 pressedStyle?: StyleProp<ViewStyle>
47 /**
48 * An optional style override for the button text.
49 */
50 textStyle?: StyleProp<TextStyle>
51 /**
52 * An optional style override for the button text when in the "pressed" state.
53 */
54 pressedTextStyle?: StyleProp<TextStyle>
55 /**
56 * An optional style override for the button text when in the "disabled" state.
57 */
58 disabledTextStyle?: StyleProp<TextStyle>
59 /**
60 * One of the different types of button presets.
61 */
62 preset?: Presets
63 /**
64 * An optional component to render on the right side of the text.
65 * Example: `RightAccessory={(props) => <View {...props} />}`
66 */
67 RightAccessory?: ComponentType<ButtonAccessoryProps>
68 /**
69 * An optional component to render on the left side of the text.
70 * Example: `LeftAccessory={(props) => <View {...props} />}`
71 */
72 LeftAccessory?: ComponentType<ButtonAccessoryProps>
73 /**
74 * Children components.
75 */
76 children?: React.ReactNode
77 /**
78 * disabled prop, accessed directly for declarative styling reasons.
79 * https://reactnative.dev/docs/pressable#disabled
80 */
81 disabled?: boolean
82 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected