Type 1 diabetes is a noncommunicable disease. This means it can't be transmitted from person to person.
The exact cause of type 1 diabetes isn't known, but it's believed that some people have a genetic predisposition for it and that environmental factors might also contribute. It typically develops during childhood or adolescence.
You can't get type 1 diabetes by being in contact with someone who has it.