# Text​Field95

A single-line native text field with a sunken Swift95 input surface.

TextField95 preserves SwiftUI editing, focus, submission, and accessibility behavior while supplying classic input styling.

![TextField95 containing Jane Doe](/images/textfield95-compact-macos.png)

The compact, complete field rendered by the snippet below.

## Use it

```swift
import Swift95
import SwiftUI

struct TextField95Example: View {
  @State private var name = "Jane Doe"

  var body: some View {
    TextField95("Name", text: $name)
      .swiftUI { field in
        field.textContentType(.name)
      }
      .frame(width: 380)
  }
}
```

## Essential behavior

**Binding**Reads and writes the supplied String binding.

**Native APIs**Use swiftUI(\_:) for content type, capitalization, focus, and submit behavior.

**Sizing**The field accepts its parent’s proposed width; constrain it in wide forms when a shorter value is expected.

**State**Disabled colors and the sunken bevel come from the active [Theme95](/components/theme/).

## Related

- [SecureField95](/components/secure-field/)
- [TextEditor95](/components/text-editor/)
- [Theme95](/components/theme/)

[Open the complete TextField95 API reference →](/api/documentation/swift95/textfield95)
