styled library provides no way to get a field. Even if it is Field.type it will be undefined , since the Field does not have this property. You can try this code and see:
class Field extends React.Component<> { render() { return (<div></div>); } } console.log(Field.type);
source share