> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CrossmintTwitterSignInButton

> Flutter Class

**Class**

Twitter/X sign-in button matching the official Crossmint RN SDK.

```dart theme={null}
class CrossmintTwitterSignInButton extends StatefulWidget
```

Calls `CrossmintAuthClient.loginWithOAuth` with `CrossmintOAuthProvider.twitter`.

## Constructors

### CrossmintTwitterSignInButton

```dart theme={null}
const CrossmintTwitterSignInButton({
  super.key,
  required this.auth,
  this.onSuccess,
  this.onError,
  this.enabled = true,
})
```

## Properties

### auth

```dart theme={null}
final CrossmintAuthClient auth
```

Auth client used to start the OAuth flow.

### onSuccess

```dart theme={null}
final VoidCallback? onSuccess
```

Called after the OAuth flow completes successfully. Use this to navigate away or refresh dependent state.

### onError

```dart theme={null}
final void Function(Object error)? onError
```

Called when the OAuth flow throws. Receives the underlying exception so consumers can surface a localized error message.

### enabled

```dart theme={null}
final bool enabled
```

When false, the button is rendered in a disabled visual state and taps do not start the OAuth flow. Defaults to true.

## Methods

### createState

```dart theme={null}
State<CrossmintTwitterSignInButton> createState()
```
